Skip to content

Commit

Permalink
tightened up version compatibility for OSGi
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Apr 18, 2024
1 parent 771d35e commit d9954ca
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jmail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jar {
manifest.attributes('Bundle-SymbolicName': 'bcjmail')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': 'org.bouncycastle.mail.*')
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}

task sourcesJar(type: Jar) {
Expand Down
2 changes: 1 addition & 1 deletion mail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jar {
manifest.attributes('Bundle-SymbolicName': 'bcmail')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': 'org.bouncycastle.mail.*')
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}

task sourcesJar(type: Jar) {
Expand Down
2 changes: 1 addition & 1 deletion mls/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jar {
manifest.attributes('Bundle-SymbolicName': 'bcmls')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': "${packages}")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}

task sourcesJar(type: Jar) {
Expand Down
2 changes: 1 addition & 1 deletion pg/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jar {
manifest.attributes('Bundle-Name': 'bcpg')
manifest.attributes('Bundle-SymbolicName': 'bcpg')
manifest.attributes('Export-Package': 'org.bouncycastle.{apache|bcpg|gpg|openpgp}.*')
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{apache|bcpg|gpg|openpgp|}.*,org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{apache|bcpg|gpg|openpgp|}.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}


Expand Down
2 changes: 1 addition & 1 deletion pkix/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jar {
manifest.attributes('Bundle-SymbolicName': 'bcpkix')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': "${packages}")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}


Expand Down
2 changes: 1 addition & 1 deletion tls/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jar {
manifest.attributes('Bundle-SymbolicName': 'bctls')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': 'org.bouncycastle.{jsse|tls}.*')
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{jsse|tls}.*,org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{jsse|tls}.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}


Expand Down
2 changes: 1 addition & 1 deletion util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jar {
manifest.attributes('Bundle-SymbolicName': 'bcutil')
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
manifest.attributes('Export-Package': "${packages},org.bouncycastle.oer.*")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},!org.bouncycastle.oer.*,org.bouncycastle.*;version=\"${version}\"")
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},!org.bouncycastle.oer.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
}


Expand Down

0 comments on commit d9954ca

Please sign in to comment.