diff --git a/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts b/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts index 5dca3511e79..652c0eb72e8 100644 --- a/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts @@ -157,7 +157,7 @@ tasks { "Implementation-Title" to project.name, "Implementation-Version" to project.version, // BND plugin to export the packages as OSGi bundle - "-exportcontents" to "!io.opentelemetry.**.internal,io.opentelemetry.*," + "-exportcontents" to "!${otelJava.moduleName.get()}.**.internal,${otelJava.moduleName.get()}.*" ) } }