Have bytebuddy task depend on resources.
MODIFY
buildSrc/src/main/java/io/opentelemetry/instrumentation/gradle/bytebuddy/ByteBuddyPluginConfigurator.java
buildSrc/src/main/java/io/opentelemetry/instrumentation/gradle/bytebuddy/ByteBuddyPluginConfigurator.java
@@ -68,6 +68,8 @@ public class ByteBuddyPluginConfigurator {
if (compile != null) {
Task languageTask = createLanguageTask(compile, taskName + language);
+ // We also process resources for SPI classes.
+ languageTask.dependsOn(sourceSet.getProcessResourcesTaskName());
byteBuddyTask.dependsOn(languageTask);
}
}

Have bytebuddy task depend on resources. (#1940)