Skip to content

Commit

Permalink
fixed OSGI export
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Feb 29, 2024
1 parent 85cb667 commit 0f37354
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mls/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ extractIncludeTestProto {

createStartScripts('org.bouncycastle.mls.client.impl.MLSClient')

jar {
from sourceSets.main.output
into('META-INF/versions/9') {
from sourceSets.java9.output
}
manifest.attributes('Multi-Release': 'true')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': 'org.bouncycastle.mls.*')
manifest.attributes('Import-Package': 'java.*;resolution:=optional;javax.*;resolution:=optional')
}

task sourcesJar(type: Jar) {
archiveBaseName = jar.archiveBaseName
archiveClassifier = 'sources'
Expand All @@ -139,4 +150,4 @@ artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
}

0 comments on commit 0f37354

Please sign in to comment.