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

46 lines
1.0 KiB
Groovy

// this project will run in isolation under the agent's classloader
plugins {
id "com.github.johnrengelman.shadow"
}
apply from: "${rootDir}/gradle/java.gradle"
// add all subprojects under 'instrumentation' to the agent's dependencies
Project instr_project = project
subprojects { subProj ->
if (subProj.getParent() == instr_project) {
instr_project.dependencies {
compile(project(subProj.getPath()))
}
}
}
whitelistedInstructionClasses += whitelistedBranchClasses += [
'datadog.trace.instrumentation.*'
]
dependencies {
compile(project(':dd-java-agent:agent-tooling')) {
exclude module: ':dd-java-agent:agent-bootstrap'
}
}
configurations {
// exclude bootstrap dependencies from shadowJar
runtime.exclude module: deps.opentracing
runtime.exclude module: deps.slf4j
runtime.exclude group: 'org.slf4j'
runtime.exclude group: 'io.opentracing'
}
shadowJar {
dependencies {
exclude(project(':dd-java-agent:agent-bootstrap'))
exclude(project(':dd-trace-api'))
}
}
jar {
classifier = 'unbundled'
}