@@ -37,20 +37,26 @@ configurations {
3737 }
3838}
3939
40+ def classifiers = [" linux-x86_64" , " linux-aarch_64" , " osx-x86_64" , " osx-aarch_64" , " windows-x86_64" ]
4041dependencies {
4142 api project(path : ' :bson' , configuration : ' default' )
4243 implementation project(path : ' :bson-record-codec' , configuration : ' default' )
4344
4445 implementation " com.github.jnr:jnr-unixsocket:$jnrUnixsocketVersion " , optional
45- api " io.netty:netty-buffer:$nettyVersion " , optional
46- api " io.netty:netty-transport:$nettyVersion " , optional
47- api " io.netty:netty-handler:$nettyVersion " , optional
46+ api platform(" io.netty:netty-bom:$nettyVersion " )
47+ api " io.netty:netty-buffer" , optional
48+ api " io.netty:netty-transport" , optional
49+ api " io.netty:netty-handler" , optional
4850 implementation " org.xerial.snappy:snappy-java:$snappyVersion " , optional
4951 implementation " com.github.luben:zstd-jni:$zstdVersion " , optional
5052 implementation " org.mongodb:mongodb-crypt:$mongoCryptVersion " , optional
5153
5254 testImplementation project(' :bson' ). sourceSets. test. output
53- testRuntimeOnly " io.netty:netty-tcnative-boringssl-static:$nettyTcnativeBoringsslVersion "
55+ testRuntimeOnly " io.netty:netty-tcnative-boringssl-static"
56+
57+ classifiers. forEach {
58+ testRuntimeOnly " io.netty:netty-tcnative-boringssl-static::$it "
59+ }
5460}
5561
5662buildConfig {
0 commit comments