// version = '1.0.0' buildscript { dependencies { classpath(libraries.spring_boot_gradle_plugin) } repositories { jcenter() } } apply plugin: 'org.springframework.boot' repositories { jcenter() } ext { applicationDefaultJvmArgs = [ "-Dfile.encoding=UTF-8", // if you need to debug java agents: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006" ] } dependencies { compile (project(':ch.psi.daq.query')) compile libraries.logback_classic compile 'org.hibernate:hibernate-validator:5.2.0.Final' compile(libraries.spring_boot_starter_web) { exclude group: 'org.slf4j', module: 'log4j-over-slf4j' } compile libraries.commons_lang compile libraries.commons_io compile libraries.commons_csv compile libraries.netty_all compile libraries.msgpack_jackson compile libraries.smile_jackson testCompile libraries.spring_boot_starter_test testCompile libraries.appache_httpclient testCompile libraries.jsonassert testCompile libraries.jsonpath } jar { // make sure "normal" jar is also build (for include in daqlocal) enabled = true // make sure "normal" jar will not overwritte by "executable" jar classifier = 'normal' } uploadArchives { repositories { mavenDeployer { pom.artifactId = 'queryrest' } } } task dropIt(dependsOn: build) { doLast { exec{ executable "curl"; args "-X", "POST", "-F", "file=@build/libs/ch.psi.daq.queryrest-" + version + ".jar", "https://dropit.psi.ch/upload"; } } }