Skip to content

Commit 9ffc24a

Browse files
committed
Add OSGi metadata to the API and SDK packages
1 parent 72c25f0 commit 9ffc24a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ tasks {
113113
}
114114
}
115115

116-
withType<Jar>().configureEach {
117-
inputs.property("moduleName", otelJava.moduleName)
118-
119-
manifest {
120-
attributes(
121-
"Automatic-Module-Name" to otelJava.moduleName,
122-
"Built-By" to System.getProperty("user.name"),
123-
"Built-JDK" to System.getProperty("java.version"),
124-
"Implementation-Title" to project.name,
125-
"Implementation-Version" to project.version
116+
named("jar", Jar::class.java) {
117+
bundle {
118+
bnd(
119+
"""
120+
Automatic-Module-Name: \${'$'}{otelJava.moduleName.get()} \n
121+
Built-By: \${System.getProperty("user.name")} \n
122+
Built-JDK: \${System.getProperty("java.version")} \n
123+
Implementation-Title: \${project.name} \n
124+
Implementation-Version: \${project.version} \n
125+
"""
126126
)
127127
}
128128
}

0 commit comments

Comments
 (0)