Skip to content

Commit

Permalink
solves #768: Add OSGi support by exporting all java packages except i…
Browse files Browse the repository at this point in the history
…nternal packages
  • Loading branch information
Roy Teeuwen committed Aug 23, 2024
1 parent 97b3fa4 commit 95bc17a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ repositories {
}

dependencies {
implementation("biz.aQute.bnd:biz.aQute.bnd.gradle:7.0.0")
implementation(enforcedPlatform("com.squareup.wire:wire-bom:5.0.0"))
implementation("com.google.auto.value:auto-value-annotations:1.11.0")
// When updating, update above in plugins too
Expand Down
6 changes: 6 additions & 0 deletions buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
eclipse
idea

id("biz.aQute.bnd.builder")
id("otel.errorprone-conventions")
id("otel.jacoco-conventions")
id("otel.spotless-conventions")
Expand Down Expand Up @@ -155,10 +156,15 @@ tasks {
"Built-JDK" to System.getProperty("java.version"),
"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.*,"
)
}

}



afterEvaluate {
withType<Javadoc>().configureEach {
with(options as StandardJavadocDocletOptions) {
Expand Down

0 comments on commit 95bc17a

Please sign in to comment.