From 769923c383169737605b221b5d7ba1d74dd2ec29 Mon Sep 17 00:00:00 2001 From: Barry d'Hoine Date: Fri, 23 Aug 2024 23:37:06 +0200 Subject: [PATCH] use module name as package scope to export content to bundle --- buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}.*" ) } }