Skip to content

Commit

Permalink
Fix OSGi crypt manifest entries (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
stIncMale authored Sep 23, 2024
1 parent a138393 commit 49f7eb4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ afterEvaluate {
'com.github.luben.zstd.*;resolution:=optional',
'org.slf4j.*;resolution:=optional',
'jnr.unixsocket.*;resolution:=optional',
'com.mongodb.crypt.capi.*;resolution:=optional',
'com.mongodb.internal.crypt.capi.*;resolution:=optional',
'jdk.net.*;resolution:=optional', // Used by SocketStreamHelper & depends on JDK version
'org.bson.codecs.record.*;resolution:=optional', // Depends on JDK version
'org.bson.codecs.kotlin.*;resolution:=optional',
Expand Down
1 change: 1 addition & 0 deletions driver-reactive-streams/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ afterEvaluate {
jar.manifest.attributes['Bundle-SymbolicName'] = 'org.mongodb.driver-reactivestreams'
jar.manifest.attributes['Import-Package'] = [
'com.mongodb.crypt.capi.*;resolution:=optional',
'com.mongodb.internal.crypt.capi.*;resolution:=optional',
'*',
].join(',')
}
1 change: 1 addition & 0 deletions driver-sync/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ afterEvaluate {
jar.manifest.attributes['Bundle-SymbolicName'] = 'org.mongodb.driver-sync'
jar.manifest.attributes['Import-Package'] = [
'com.mongodb.crypt.capi.*;resolution:=optional',
'com.mongodb.internal.crypt.capi.*;resolution:=optional',
'*',
].join(',')
}
2 changes: 1 addition & 1 deletion mongodb-crypt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ afterEvaluate {
tasks.jar {
manifest {
attributes(
"-exportcontents" to "com.mongodb.crypt.capi.*;-noimport:=true",
"-exportcontents" to "com.mongodb.*;-noimport:=true",
"Automatic-Module-Name" to "com.mongodb.crypt.capi",
"Import-Package" to "org.slf4j.*;resolution:=optional,org.bson.*",
"Bundle-Name" to "MongoCrypt",
Expand Down

0 comments on commit 49f7eb4

Please sign in to comment.