Skip to content

Commit a4100ce

Browse files
authored
Update netty dependencies to use the netty-bom (#992)
JAVA-4710
1 parent 41c4386 commit a4100ce

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ ext {
4545
configDir = new File(rootDir, 'config')
4646
jnrUnixsocketVersion = '0.38.17'
4747
nettyVersion = '4.1.79.Final'
48-
nettyTcnativeBoringsslVersion = '2.0.54.Final'
4948
snappyVersion = '1.1.8.4'
5049
zstdVersion = '1.5.2-3'
5150
mongoCryptVersion = '1.6.0-alpha0'

driver-core/build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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"]
4041
dependencies {
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

5662
buildConfig {

0 commit comments

Comments
 (0)