Make muzzle plugin apply to Scala code
@@ -19,7 +19,7 @@ subprojects { subProj ->
subProj.byteBuddy {
transformation {
// Applying NoOp optimizes build by applying bytebuddy plugin to only compileJava task
- tasks = ['compileJava']
+ tasks = ['compileJava', 'compileScala']
plugin = 'datadog.trace.agent.tooling.muzzle.MuzzleGradlePlugin$NoOp'
}
}
@@ -27,7 +27,7 @@ subprojects { subProj ->
subProj.afterEvaluate {
subProj.byteBuddy {
transformation {
- tasks = ['compileJava']
+ tasks = ['compileJava', 'compileScala']
plugin = 'datadog.trace.agent.tooling.muzzle.MuzzleGradlePlugin'
classPath = project(':dd-java-agent:agent-tooling').configurations.instrumentationMuzzle + subProj.configurations.compile + subProj.sourceSets.main.output
}
