Skip to content

Commit

Permalink
Fix java version check
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Nov 4, 2024
1 parent fbb6bae commit 9b60618
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions reactor-netty-http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ dependencies {
// Needed for HTTP/2 testing
testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:$boringSslVersion$os_suffix"

if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
if (project.hasProperty("testToolchain")) {
if (testToolchain == "17") {
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
}
}

// noMicrometerTest sourceSet (must not include Micrometer)
Expand Down

0 comments on commit 9b60618

Please sign in to comment.