This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'idea' | |
apply plugin: 'war' | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
repositories { | |
jcenter() | |
maven { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id "io.spring.dependency-management" version "0.5.7.RELEASE" | |
id "io.dcow.sublime" version "0.9.2" | |
id "org.akhikhl.gretty" version "1.2.4" | |
} | |
apply plugin: 'war' | |
apply plugin: 'idea' | |
apply plugin: 'eclipse-wtp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String content = 'Some text' | |
def myFile = new File('mySuperFile.txt') | |
myFile.write(content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { | |
url = "http://jerry-vrt.nsd.ru:8081/artifactory/repo" | |
} | |
} | |
dependencies { | |
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node() { | |
stage("Checkout") { | |
cloneRepo("WSAlameda", "http://gitlabsvr.nsd.ru/gitlab/alameda/WSAlameda.git", "${branch}") | |
} | |
stage("Unit tests") { | |
dir('WSAlameda') { | |
try { | |
sh "chmod +x gradlew" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GET | |
@Produces(MediaType.APPLICATION_JSON) | |
public Response getState(@Context ServletContext context) { | |
log.info("IoT page"); | |
URI uri = UriBuilder.fromUri(URI.create(context.getContextPath())) | |
.path("/iot.html").build(); | |
return Response.seeOther(uri).build(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm ~/Library/Preferences/jetbrains.idea.*.plist | |
rm ~/Library/Preferences/IntelliJIdea2019.1/eval/*.key | |
sed -i'' -e '/evlsprt/d' ~/Library/Preferences/IntelliJIdea2019.1/options/options.xml | |
sed -i'' -e '/evlsprt/d' ~/Library/Preferences/com.apple.java.util.prefs.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Base settings and GC logging | |
-server -XX:+AlwaysPreTouch # First should be default, but we make it explicit, second pre-zeroes memory mapped pages on JVM startup -- improves runtime performance | |
# -Xloggc:gc-%t.log # CUSTOMIZE LOCATION HERE - $path/gc-%t.log -- the %t in the gc log file path is so we get a new file with each JVM restart | |
-XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m # Limits the number of files, logs to folder | |
-XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause | |
-XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy # gather info on object age & reference GC time for further tuning if needed. | |
# G1 specific settings -- probably should be default for multi-core systems with >2 GB of heap (below that, default is probably fine) | |
-XX:+UseG1GC | |
-XX:+UseStringDeduplication |