@@ -64,20 +64,14 @@ afterEvaluate {
64
64
jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.driver.core'
65
65
jar. manifest. attributes[' Bundle-SymbolicName' ] = ' org.mongodb.driver-core'
66
66
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
82
76
]. join(' ,' )
83
77
}
0 commit comments