diff --git a/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts b/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts index d15feefdcd05..d701141e3f65 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts +++ b/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts @@ -208,10 +208,14 @@ tasks { isEnabled = testSpring3 } - withType(Jar::class) { + named("jar") { from(sourceSets["javaSpring3"].output) } + named("sourcesJar") { + from(sourceSets["javaSpring3"].java) + } + val testStableSemconv by registering(Test::class) { jvmArgs("-Dotel.semconv-stability.opt-in=database") }