@@ -64,20 +64,14 @@ afterEvaluate {
6464 jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.driver.core'
6565 jar. manifest. attributes[' Bundle-SymbolicName' ] = ' org.mongodb.driver-core'
6666 jar. manifest. attributes[' Import-Package' ] = [
67- ' org.bson.*' , // unfortunate that this is necessary, but if it's left out then it's not included
68- ' javax.crypto.*' ,
69- ' javax.management.*' ,
70- ' javax.naming.*' ,
71- ' javax.net.*' ,
72- ' jdk.net.*' ,
73- ' javax.security.sasl.*' ,
74- ' javax.security.auth.callback.*' ,
75- ' org.ietf.jgss.*' ,
76- ' io.netty.*;resolution:=optional' ,
77- ' org.xerial.snappy.*;resolution:=optional' ,
78- ' com.github.luben.zstd.*;resolution:=optional' ,
79- ' org.slf4j.*;resolution:=optional' ,
80- ' jnr.unixsocket.*;resolution:=optional' ,
81- ' com.mongodb.crypt.capi.*;resolution:=optional'
67+ ' !sun.misc.*' , // Used by DirectBufferDeallocator only for java 8
68+ ' !sun.nio.ch.*' , // Used by DirectBufferDeallocator only for java 8
69+ ' io.netty.*;resolution:=optional' ,
70+ ' org.xerial.snappy.*;resolution:=optional' ,
71+ ' com.github.luben.zstd.*;resolution:=optional' ,
72+ ' org.slf4j.*;resolution:=optional' ,
73+ ' jnr.unixsocket.*;resolution:=optional' ,
74+ ' com.mongodb.crypt.capi.*;resolution:=optional' ,
75+ ' *' // import all that is not excluded or modified before
8276 ]. join(' ,' )
8377}
0 commit comments