opentelemetry-java-instrume.../dd-java-agent/instrumentation/hibernate/hibernate.gradle

69 lines
2.5 KiB
Groovy

// Set properties before any plugins get loaded
project.ext {
// Execute tests on all JVMs, even rare and outdated ones
// coreJavaInstrumentation = true
// minJavaVersionForTests = JavaVersion.VERSION_1_7
}
//muzzle {
// pass {
// group = "org.hibernate"
// module = "hibernate-core"
// versions = "[5.4.2.Final]"
// assertInverse = true
// }
// fail {
// group = "org.elasticsearch.client"
// module = "rest"
// versions = "(,)"
// assertInverse = true
// }
//}
apply from: "${rootDir}/gradle/java.gradle"
apply plugin: 'org.unbroken-dome.test-sets'
//testSets {
// latestDepTest {
// dirName = 'test'
// }
//}
dependencies {
compileOnly group: 'org.hibernate', name: 'hibernate-core', version: '5.4.1.Final'
// compile project(':dd-trace-api')
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')
testCompile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.1.Final'
testCompile group: 'com.h2database', name: 'h2', version: '1.4.197'
// testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5' // todo log4j
// // Include httpclient instrumentation for testing because it is a dependency for elasticsearch-rest-client.
// // It doesn't actually work though. They use HttpAsyncClient, which isn't currently instrumented.
// // TODO: add Apache's HttpAsyncClient instrumentation when that is complete.
// testCompile project(':dd-java-agent:instrumentation:apache-httpclient-4')
//
// testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
// testCompile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.0'
//
// testCompile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-client', version: '6.4.0'
// testCompile group: 'org.elasticsearch', name: 'elasticsearch', version: '6.4.0'
// testCompile group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '6.4.0'
//
// latestDepTestCompile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-client', version: '+'
// latestDepTestCompile group: 'org.elasticsearch.client', name: 'transport', version: '6.+'
// latestDepTestCompile group: 'org.elasticsearch', name: 'elasticsearch', version: '6.+'
// latestDepTestCompile group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '6.+'
}