34 lines
906 B
Groovy
34 lines
906 B
Groovy
apply from: "${rootDir}/gradle/java.gradle"
|
|
|
|
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
|
|
sourceSets {
|
|
test {
|
|
groovy {
|
|
// Sparkjava is not compatible with < Java 8
|
|
exclude '**/SparkJavaBasedTest.groovy'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
|
|
compile('io.opentracing.contrib:opentracing-web-servlet-filter:0.1.0') {
|
|
transitive = false
|
|
}
|
|
|
|
compile project(':dd-java-agent:agent-tooling')
|
|
|
|
compile deps.bytebuddy
|
|
compile deps.opentracing
|
|
compile deps.autoservice
|
|
compile group: 'com.sparkjava', name: 'spark-core', version: '2.7.1'
|
|
|
|
testCompile project(':dd-java-agent:testing')
|
|
|
|
// Uses jetty-9 instrumentation for requests
|
|
testCompile project(':dd-java-agent:instrumentation:jetty-9')
|
|
testCompile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.6.0'
|
|
|
|
}
|