Do testAnnotationProcessor deps.autoservice in modules with services in tests
Otherwise sometimes tests cannod discover services
MODIFY
dd-java-agent/testing/testing.gradle
dd-java-agent/testing/testing.gradle
@@ -32,4 +32,8 @@ dependencies {
// test instrumenting java 1.1 bytecode
testCompile group: 'net.sf.jt400', name: 'jt400', version: '6.1'
+
+ // We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this
+ testAnnotationProcessor deps.autoservice
+ testImplementation deps.autoservice
}

MODIFY
dd-trace-ot/dd-trace-ot.gradle
dd-trace-ot/dd-trace-ot.gradle
@@ -35,8 +35,11 @@ dependencies {
// java.lang.NoSuchMethodError: com.fasterxml.jackson.dataformat.smile.SmileGenerator.getOutputContext()
compile group: 'org.msgpack', name: 'jackson-dataformat-msgpack', version: '0.8.14'
+ // We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this
+ testAnnotationProcessor deps.autoservice
+ testImplementation deps.autoservice
+
testCompile project(":dd-java-agent:testing")
- testCompile deps.autoservice
testCompile group: 'org.objenesis', name: 'objenesis', version: '2.6'
testCompile group: 'cglib', name: 'cglib-nodep', version: '3.2.5'
testCompile 'com.github.stefanbirkner:system-rules:1.17.1'

Do testAnnotationProcessor deps.autoservice in modules with services in tests

Otherwise sometimes tests cannod discover services