Skip to content

Commit 49f7eb4

Browse files
authored
Fix OSGi crypt manifest entries (#1506)
1 parent a138393 commit 49f7eb4

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

driver-core/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ afterEvaluate {
8989
'com.github.luben.zstd.*;resolution:=optional',
9090
'org.slf4j.*;resolution:=optional',
9191
'jnr.unixsocket.*;resolution:=optional',
92-
'com.mongodb.crypt.capi.*;resolution:=optional',
92+
'com.mongodb.internal.crypt.capi.*;resolution:=optional',
9393
'jdk.net.*;resolution:=optional', // Used by SocketStreamHelper & depends on JDK version
9494
'org.bson.codecs.record.*;resolution:=optional', // Depends on JDK version
9595
'org.bson.codecs.kotlin.*;resolution:=optional',

driver-reactive-streams/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ afterEvaluate {
7575
jar.manifest.attributes['Bundle-SymbolicName'] = 'org.mongodb.driver-reactivestreams'
7676
jar.manifest.attributes['Import-Package'] = [
7777
'com.mongodb.crypt.capi.*;resolution:=optional',
78+
'com.mongodb.internal.crypt.capi.*;resolution:=optional',
7879
'*',
7980
].join(',')
8081
}

driver-sync/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ afterEvaluate {
4949
jar.manifest.attributes['Bundle-SymbolicName'] = 'org.mongodb.driver-sync'
5050
jar.manifest.attributes['Import-Package'] = [
5151
'com.mongodb.crypt.capi.*;resolution:=optional',
52+
'com.mongodb.internal.crypt.capi.*;resolution:=optional',
5253
'*',
5354
].join(',')
5455
}

mongodb-crypt/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ afterEvaluate {
175175
tasks.jar {
176176
manifest {
177177
attributes(
178-
"-exportcontents" to "com.mongodb.crypt.capi.*;-noimport:=true",
178+
"-exportcontents" to "com.mongodb.*;-noimport:=true",
179179
"Automatic-Module-Name" to "com.mongodb.crypt.capi",
180180
"Import-Package" to "org.slf4j.*;resolution:=optional,org.bson.*",
181181
"Bundle-Name" to "MongoCrypt",

0 commit comments

Comments
 (0)