50 lines
1.6 KiB
Groovy
50 lines
1.6 KiB
Groovy
// Set properties before any plugins get loaded
|
|
project.ext {
|
|
// Execute tests on all JVMs, even rare and outdated ones
|
|
coreJavaInstrumentation = true
|
|
}
|
|
|
|
apply from: "${rootDir}/gradle/java.gradle"
|
|
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
testSets {
|
|
latestDepTest {
|
|
dirName = 'test'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':dd-java-agent:agent-tooling')
|
|
|
|
compile deps.bytebuddy
|
|
compile deps.opentracing
|
|
annotationProcessor deps.autoservice
|
|
implementation deps.autoservice
|
|
|
|
testCompile project(':dd-java-agent:testing')
|
|
// jdbc unit testing
|
|
testCompile group: 'com.h2database', name: 'h2', version: '1.3.169' // first version jdk 1.6 compatible
|
|
testCompile group: 'org.apache.derby', name: 'derby', version: '10.6.1.0'
|
|
testCompile group: 'org.hsqldb', name: 'hsqldb', version: '2.0.0'
|
|
|
|
testCompile group: 'org.apache.tomcat', name: 'tomcat-jdbc', version: '7.0.19'
|
|
// tomcat needs this to run
|
|
testCompile group: 'org.apache.tomcat', name: 'tomcat-juli', version: '7.0.19'
|
|
testCompile group: 'com.zaxxer', name: 'HikariCP', version: '2.4.0'
|
|
testCompile group: 'com.mchange', name: 'c3p0', version: '0.9.5'
|
|
}
|
|
|
|
configurations.latestDepTestCompile {
|
|
resolutionStrategy {
|
|
force group: 'com.h2database', name: 'h2', version: '+'
|
|
force group: 'org.apache.derby', name: 'derby', version: '+'
|
|
force group: 'org.hsqldb', name: 'hsqldb', version: '+'
|
|
|
|
force group: 'org.apache.tomcat', name: 'tomcat-jdbc', version: '+'
|
|
force group: 'org.apache.tomcat', name: 'tomcat-juli', version: '+'
|
|
force group: 'com.zaxxer', name: 'HikariCP', version: '+'
|
|
force group: 'com.mchange', name: 'c3p0', version: '+'
|
|
}
|
|
}
|