@@ -57,9 +57,6 @@ dependencies {
5757 bootstrapLibs(project(" :instrumentation-api" ))
5858 // opentelemetry-api is an api dependency of :instrumentation-api, but opentelemetry-api-incubator is not
5959 bootstrapLibs(" io.opentelemetry:opentelemetry-api-incubator" )
60- bootstrapLibs(project(" :instrumentation-api-incubator" )) {
61- exclude(" io.opentelemetry" , " opentelemetry-sdk-extension-autoconfigure-spi" )
62- }
6360 bootstrapLibs(project(" :instrumentation-annotations-support" ))
6461 bootstrapLibs(project(" :javaagent-bootstrap" ))
6562
@@ -73,6 +70,7 @@ dependencies {
7370 exclude(" io.opentelemetry" , " opentelemetry-sdk-extension-autoconfigure-spi" )
7471 }
7572 baseJavaagentLibs(project(" :javaagent-extension-api" ))
73+ baseJavaagentLibs(project(" :instrumentation-api-incubator" ))
7674
7775 baseJavaagentLibs(project(" :javaagent-tooling" )) {
7876 exclude(" io.opentelemetry" , " opentelemetry-sdk-extension-autoconfigure-spi" )
@@ -432,13 +430,19 @@ fun CopySpec.copyByteBuddy(jar: Provider<RegularFile>) {
432430fun ShadowJar.excludeBootstrapClasses () {
433431 dependencies {
434432 exclude(project(" :instrumentation-api" ))
435- exclude(project(" :instrumentation-api-incubator" ))
436433 exclude(project(" :instrumentation-annotations-support" ))
437434 exclude(project(" :javaagent-bootstrap" ))
438435 }
439436
440437 // exclude the bootstrap part of the javaagent-extension-api
441438 exclude(" io/opentelemetry/javaagent/bootstrap/**" )
439+
440+ // all in instrumentation-api-incubator except the bridge package
441+ exclude(" io/opentelemetry/instrumentation/api/incubator/builder/**" )
442+ exclude(" io/opentelemetry/instrumentation/api/incubator/config/**" )
443+ exclude(" io/opentelemetry/instrumentation/api/incubator/instrumenter/**" )
444+ exclude(" io/opentelemetry/instrumentation/api/incubator/log/**" )
445+ exclude(" io/opentelemetry/instrumentation/api/incubator/semconv/**" )
442446}
443447
444448class JavaagentProvider (
0 commit comments