44 lines
1.5 KiB
Groovy
44 lines
1.5 KiB
Groovy
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "io.opentelemetry"
|
|
module = "opentelemetry-extension-auto-annotations"
|
|
versions = "(,)"
|
|
extraDependency 'io.opentracing.contrib.dropwizard:dropwizard-opentracing:0.2.2'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation group: 'com.newrelic.agent.java', name: 'newrelic-api', version: '+'
|
|
testImplementation(group: 'io.opentracing.contrib.dropwizard', name: 'dropwizard-opentracing', version: '0.2.2') {
|
|
transitive = false
|
|
}
|
|
testImplementation group: 'com.signalfx.public', name: 'signalfx-trace-api', version: '+'
|
|
//Old and new versions of kamon use different packages for Trace annotation
|
|
testImplementation(group: 'io.kamon', name: 'kamon-annotation_2.11', version: '0.6.7') {
|
|
transitive = false
|
|
}
|
|
testImplementation group: 'io.kamon', name: 'kamon-annotation-api', version: '+'
|
|
testImplementation group: 'com.appoptics.agent.java', name: 'appoptics-sdk', version: '+'
|
|
testImplementation group: 'com.tracelytics.agent.java', name: 'tracelytics-api', version: '+'
|
|
testImplementation(group: 'org.springframework.cloud', name: 'spring-cloud-sleuth-core', version: '+') {
|
|
transitive = false
|
|
}
|
|
}
|
|
|
|
test {
|
|
filter {
|
|
excludeTestsMatching 'TraceProvidersTest'
|
|
}
|
|
}
|
|
|
|
// Needs a fresh classloader.
|
|
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/919
|
|
def testTraceProviders = tasks.register('testTraceProviders', Test) {
|
|
filter {
|
|
includeTestsMatching 'TraceProvidersTest'
|
|
}
|
|
}
|
|
test.dependsOn(testTraceProviders)
|