Files
gls_docs/build.gradle
Fabian Märki 095348d405 ATEST-315
2016-04-14 14:54:22 +02:00

49 lines
1.2 KiB
Groovy

// version = '1.0.0'
buildscript {
dependencies { classpath(libraries.spring_boot_gradle_plugin) }
repositories { jcenter() }
}
apply plugin: 'spring-boot'
repositories { jcenter() }
springBoot { // when using spring loaded turn on noverify
noverify = true }
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
testCompile libraries.spring_boot_starter_test
testCompile libraries.jsonassert
testCompile libraries.jsonpath
}
uploadArchives {
repositories {
mavenDeployer { pom.artifactId = 'queryrest' }
}
}
task dropIt(dependsOn: build) << {
exec{ executable "curl"; args "-X", "POST", "-F", "file=@build/libs/ch.psi.daq.queryrest-" + version + ".jar", "http://dropit.psi.ch/upload"; }
}