Skip to content

Commit d9954ca

Browse files
committedApr 18, 2024
tightened up version compatibility for OSGi
1 parent 771d35e commit d9954ca

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed
 

‎jmail/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jar {
8484
manifest.attributes('Bundle-SymbolicName': 'bcjmail')
8585
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
8686
manifest.attributes('Export-Package': 'org.bouncycastle.mail.*')
87-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"${version}\"")
87+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
8888
}
8989

9090
task sourcesJar(type: Jar) {

‎mail/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jar {
6464
manifest.attributes('Bundle-SymbolicName': 'bcmail')
6565
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
6666
manifest.attributes('Export-Package': 'org.bouncycastle.mail.*')
67-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"${version}\"")
67+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
6868
}
6969

7070
task sourcesJar(type: Jar) {

‎mls/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jar {
161161
manifest.attributes('Bundle-SymbolicName': 'bcmls')
162162
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
163163
manifest.attributes('Export-Package': "${packages}")
164-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"${version}\"")
164+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
165165
}
166166

167167
task sourcesJar(type: Jar) {

‎pg/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jar {
7272
manifest.attributes('Bundle-Name': 'bcpg')
7373
manifest.attributes('Bundle-SymbolicName': 'bcpg')
7474
manifest.attributes('Export-Package': 'org.bouncycastle.{apache|bcpg|gpg|openpgp}.*')
75-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{apache|bcpg|gpg|openpgp|}.*,org.bouncycastle.*;version=\"${version}\"")
75+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{apache|bcpg|gpg|openpgp|}.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
7676
}
7777

7878

‎pkix/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jar {
7474
manifest.attributes('Bundle-SymbolicName': 'bcpkix')
7575
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
7676
manifest.attributes('Export-Package': "${packages}")
77-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"${version}\"")
77+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
7878
}
7979

8080

‎tls/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jar {
150150
manifest.attributes('Bundle-SymbolicName': 'bctls')
151151
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
152152
manifest.attributes('Export-Package': 'org.bouncycastle.{jsse|tls}.*')
153-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{jsse|tls}.*,org.bouncycastle.*;version=\"${version}\"")
153+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{jsse|tls}.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
154154
}
155155

156156

‎util/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jar {
7070
manifest.attributes('Bundle-SymbolicName': 'bcutil')
7171
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
7272
manifest.attributes('Export-Package': "${packages},org.bouncycastle.oer.*")
73-
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},!org.bouncycastle.oer.*,org.bouncycastle.*;version=\"${version}\"")
73+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},!org.bouncycastle.oer.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
7474
}
7575

7676

0 commit comments

Comments
 (0)
Please sign in to comment.