diff --git a/gradle.properties b/gradle.properties index f7f1f66..63caa35 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,12 +1,12 @@ group = org.xbib name = netty-http -version = 4.1.76.0 +version = 4.1.76.1 org.gradle.warning.mode = ALL gradle.wrapper.version = 7.3.2 netty.version = 4.1.76.Final tcnative.version = 2.0.51.Final -bouncycastle.version = 1.71 +bouncycastle.version = 1.70 conscrypt.version = 2.5.2 javassist.version = 3.28.0-GA jackson.version = 2.12.6 diff --git a/netty-http-client/build.gradle b/netty-http-client/build.gradle index f140f86..28e9613 100644 --- a/netty-http-client/build.gradle +++ b/netty-http-client/build.gradle @@ -6,5 +6,10 @@ dependencies { testImplementation "com.fasterxml.jackson.core:jackson-databind:${project.property('jackson.version')}" testImplementation "org.conscrypt:conscrypt-openjdk-uber:${project.property('conscrypt.version')}" testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:${project.property('bouncycastle.version')}" - testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:${project.property('tcnative.version')}" + if (System.properties.get('os.name').toLowerCase().contains('linux') && + System.properties.get('os.arch').toLowerCase().contains('amd64')) { + testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:${project.property('tcnative.version')}:linux-x86_64" + } else { + testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:${project.property('tcnative.version')}" + } } diff --git a/netty-http-server/build.gradle b/netty-http-server/build.gradle index 2ba5c1c..c7eb8e7 100644 --- a/netty-http-server/build.gradle +++ b/netty-http-server/build.gradle @@ -6,7 +6,12 @@ dependencies { testImplementation project(":netty-http-bouncycastle") testRuntimeOnly "org.javassist:javassist:${project.property('javassist.version')}" testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:${project.property('bouncycastle.version')}" - testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:${project.property('tcnative.version')}" + if (System.properties.get('os.name').toLowerCase().contains('linux') && + System.properties.get('os.arch').toLowerCase().contains('amd64')) { + testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:${project.property('tcnative.version')}:linux-x86_64" + } else { + testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:${project.property('tcnative.version')}" + } testRuntimeOnly project(":netty-http-epoll") testRuntimeOnly project(":netty-http-kqueue") }