3131sourceSets. main. resources. srcDirs = [' src/resources' ]
3232
3333dependencies {
34- compile project(' :bson' )
34+ compile project(path : ' :bson' , configuration : ' default ' )
3535
3636 compile " com.github.jnr:jnr-unixsocket:$jnrUnixsocketVersion " , optional
3737 compile " io.netty:netty-buffer:$nettyVersion " , optional
@@ -52,28 +52,25 @@ buildConfig {
5252 packageName = ' com.mongodb.internal.build'
5353}
5454
55- jar {
56- bnd(
57- ' -exportcontents' : " *;-noimport:=true" ,
58- ' Automatic-Module-Name' : ' org.mongodb.driver.core' ,
59- ' Build-Version' : project. gitVersion,
60- ' Import-Package' : [
61- ' org.bson.*' , // unfortunate that this is necessary, but if it's left out then it's not included
62- ' javax.crypto.*' ,
63- ' javax.crypto.spec.*' ,
64- ' javax.management.*' ,
65- ' javax.naming.*' ,
66- ' javax.naming.directory.*' ,
67- ' javax.net.*' ,
68- ' javax.net.ssl.*' ,
69- ' javax.security.sasl.*' ,
70- ' javax.security.auth.callback.*' ,
71- ' org.ietf.jgss.*' ,
72- ' io.netty.*;resolution:=optional' ,
73- ' org.xerial.snappy.*;resolution:=optional' ,
74- ' com.github.luben.zstd.*;resolution:=optional' ,
75- ' org.slf4j;resolution:=optional' ,
76- ' jnr.unixsocket;resolution:=optional'
77- ]. join(' ,' )
78- )
55+ afterEvaluate {
56+ jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.driver.core'
57+ jar. manifest. attributes[' Bundle-SymbolicName' ] = ' org.mongodb.driver-core'
58+ jar. manifest. attributes[' Import-Package' ] = [
59+ ' org.bson.*' , // unfortunate that this is necessary, but if it's left out then it's not included
60+ ' javax.crypto.*' ,
61+ ' javax.crypto.spec.*' ,
62+ ' javax.management.*' ,
63+ ' javax.naming.*' ,
64+ ' javax.naming.directory.*' ,
65+ ' javax.net.*' ,
66+ ' javax.net.ssl.*' ,
67+ ' javax.security.sasl.*' ,
68+ ' javax.security.auth.callback.*' ,
69+ ' org.ietf.jgss.*' ,
70+ ' io.netty.*;resolution:=optional' ,
71+ ' org.xerial.snappy.*;resolution:=optional' ,
72+ ' com.github.luben.zstd.*;resolution:=optional' ,
73+ ' org.slf4j;resolution:=optional' ,
74+ ' jnr.unixsocket;resolution:=optional'
75+ ]. join(' ,' )
7976}
0 commit comments