46 lines
1.2 KiB
Groovy
46 lines
1.2 KiB
Groovy
group = 'io.opentelemetry.javaagent'
|
|
|
|
apply from: "$rootDir/gradle/java.gradle"
|
|
apply from: "$rootDir/gradle/publish.gradle"
|
|
|
|
// FIXME: Improve test coverage.
|
|
minimumBranchCoverage = 0.0
|
|
minimumInstructionCoverage = 0.0
|
|
|
|
// patch inner class from Caffeine to avoid ForkJoinTask from being loaded too early
|
|
sourceSets {
|
|
patch {
|
|
java {}
|
|
}
|
|
}
|
|
jar {
|
|
from(sourceSets.patch.output) {
|
|
include 'io/opentelemetry/instrumentation/api/internal/shaded/caffeine/cache/BoundedLocalCache$PerformCleanupTask.class'
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
// classpath used by the instrumentation muzzle plugin
|
|
instrumentationMuzzle {
|
|
canBeConsumed = true
|
|
canBeResolved = false
|
|
extendsFrom implementation
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api deps.opentelemetryApi
|
|
api deps.opentelemetryApiMetrics
|
|
compileOnly deps.opentelemetrySdk
|
|
implementation deps.slf4j
|
|
implementation group: 'org.slf4j', name: 'slf4j-simple', version: versions.slf4j
|
|
// ^ Generally a bad idea for libraries, but we're shadowing.
|
|
|
|
implementation project(':javaagent-api')
|
|
implementation project(':instrumentation-api')
|
|
|
|
testImplementation project(':testing-common')
|
|
testImplementation deps.mockito
|
|
testImplementation deps.assertj
|
|
}
|