diff --git a/build.gradle b/build.gradle index e7c9c6b..346adb0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,29 +1,21 @@ version = '1.0.0' buildscript { - dependencies { - classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.4.RELEASE") - } - repositories { - jcenter() - } + dependencies { classpath(libraries.spring_boot_gradle_plugin) } + repositories { jcenter() } } apply plugin: 'spring-boot' -repositories { - jcenter() -} +repositories { jcenter() } -springBoot { - // when using spring loaded turn on noverify - noverify = true -} +springBoot { // when using spring loaded turn on noverify + noverify = true } applicationDefaultJvmArgs = [ - "-Dfile.encoding=UTF-8", - // if you need to debug java agents: - "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006" + "-Dfile.encoding=UTF-8", + // if you need to debug java agents: + "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006" ] //configurations { @@ -31,24 +23,21 @@ applicationDefaultJvmArgs = [ //} dependencies { - compile (project(':ch.psi.daq.hazelcast')) - compile 'org.springframework.boot:spring-boot-starter-web:1.2.4.RELEASE' - compile 'com.google.code.gson:gson:2+' - compile 'org.apache.commons:commons-lang3:3.4' - - testCompile 'org.springframework.boot:spring-boot-starter-test:1.2.4.RELEASE' - testCompile 'org.skyscreamer:jsonassert:1.2.3' - testCompile 'com.jayway.jsonpath:json-path:2.0.0' + compile (project(':ch.psi.daq.hazelcast')) + compile libraries.spring_boot_starter_web + compile libraries.commons_lang + + testCompile libraries.spring_boot_starter_test + testCompile libraries.jsonassert + testCompile libraries.jsonpath } uploadArchives { - repositories { - mavenDeployer { - pom.artifactId = 'rest' - } - } + repositories { + mavenDeployer { pom.artifactId = 'rest' } + } } task dropItQueryREST(dependsOn: build) << { - exec{ executable "curl"; args "-X", "POST", "-F", "file=@build/libs/ch.psi.daq.rest-" + version + ".jar", "http://dropit.psi.ch:8080"; } + exec{ executable "curl"; args "-X", "POST", "-F", "file=@build/libs/ch.psi.daq.rest-" + version + ".jar", "http://dropit.psi.ch:8080"; } } \ No newline at end of file