Skip to content

Commit 4fa85c8

Browse files
committed
Added missing packages to OSGi Import-Package manifest entry
JAVA-1738
1 parent ed387e5 commit 4fa85c8

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

bson/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ apply plugin: 'osgi'
1818

1919
archivesBaseName = 'bson'
2020

21+
jar {
22+
manifest {
23+
instruction 'Import-Package',
24+
'javax.xml.bind.*',
25+
'org.slf4j;resolution:=optional'
26+
}
27+
}
28+
2129
modifyPom {
2230
project {
2331
name 'BSON'

driver-core/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jar {
3030
manifest {
3131
instruction 'Import-Package',
3232
'org.bson.*', // unfortunate that this is necessary, but if it's left out then it's not included
33+
'javax.crypto.*',
34+
'javax.crypto.spec.*',
3335
'javax.management.*',
3436
'javax.net.*',
3537
'javax.net.ssl.*',
3638
'javax.security.sasl.*',
37-
'javax.security.auth.*',
39+
'javax.security.auth.callback.*',
3840
'org.ietf.jgss.*',
3941
'io.netty.*;resolution:=optional',
4042
'org.slf4j;resolution:=optional'

mongo-java-driver/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ sourceSets {
4646
jar {
4747
manifest {
4848
instruction 'Import-Package',
49+
'javax.xml.bind.*',
50+
'javax.crypto.*',
51+
'javax.crypto.spec.*',
4952
'javax.management.*',
5053
'javax.net.*',
5154
'javax.net.ssl.*',
5255
'javax.security.sasl.*',
53-
'javax.security.auth.*',
56+
'javax.security.auth.callback.*',
5457
'org.ietf.jgss.*',
5558
'io.netty.*;resolution:=optional',
5659
'org.slf4j;resolution:=optional'

0 commit comments

Comments
 (0)