Skip to content

Commit 5000438

Browse files
committed
add OSGi manifest headers for jars
1 parent 05cc138 commit 5000438

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

buildSrc/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ dependencies {
1414
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.2")
1515
// Needed for japicmp but not automatically brought in for some reason.
1616
implementation("com.google.guava:guava:32.1.3-jre")
17+
implementation("biz.aQute.bnd:biz.aQute.bnd.gradle:7.0.0")
1718
}

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
eclipse
99
idea
1010

11+
id("biz.aQute.bnd.builder")
1112
id("otel.spotless-conventions")
1213
}
1314

@@ -88,11 +89,13 @@ tasks {
8889

8990
manifest {
9091
attributes(
91-
"Automatic-Module-Name" to otelJava.moduleName,
92+
"Automatic-Module-Name" to otelJava.moduleName,
9293
"Built-By" to System.getProperty("user.name"),
9394
"Built-JDK" to System.getProperty("java.version"),
9495
"Implementation-Title" to project.base.archivesName,
95-
"Implementation-Version" to project.version)
96+
"Implementation-Version" to project.version,
97+
"-exportcontents" to "io.opentelemetry.semconv.*"
98+
)
9699
}
97100
}
98101

0 commit comments

Comments
 (0)