Skip to content

Commit

Permalink
Merge #2352 into netty5
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Jul 4, 2022
2 parents bdb6e9a + 062b2cc commit 63b8bf1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 40 deletions.
22 changes: 6 additions & 16 deletions build.gradle
Expand Up @@ -124,13 +124,7 @@ ext {
blockHoundVersion = '1.0.6.RELEASE'
bouncycastleVersion = '1.70'

jdk = JavaVersion.current().majorVersion
jdkJavadoc = "https://docs.oracle.com/javase/${jdk}/docs/api/"
if (JavaVersion.current().isJava11Compatible()) {
jdkJavadoc = "https://docs.oracle.com/en/java/javase/${jdk}/docs/api/"
}
println "JDK Javadoc link for this build is ${jdkJavadoc}"
javadocLinks = [jdkJavadoc,
javadocLinks = ["https://docs.oracle.com/en/java/javase/17/docs/api/",
"https://fasterxml.github.io/jackson-databind/javadoc/2.5/",
"https://www.reactive-streams.org/reactive-streams-1.0.4-javadoc/",
"https://projectreactor.io/docs/core/release/api/",
Expand Down Expand Up @@ -220,12 +214,10 @@ subprojects {
"-Xlint:rawtypes"
]

if (JavaVersion.current().isJava8Compatible()) {
compileTestJava.options.compilerArgs += "-parameters"
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
compileTestJava.options.compilerArgs += "-parameters"
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
Expand All @@ -236,9 +228,7 @@ subprojects {
}

project.tasks.withType(Test).all {
if (JavaVersion.current() > JavaVersion.VERSION_12) {
jvmArgs += "-XX:+AllowRedefinitionToAddDeleteMethods"
}
jvmArgs += "-XX:+AllowRedefinitionToAddDeleteMethods"
// run tests with IPv4 only when IPv6 is available
if (project.hasProperty('preferIPv4Stack')) {
systemProperty("java.net.preferIPv4Stack", "true")
Expand Down
8 changes: 3 additions & 5 deletions gradle/javadoc.gradle
Expand Up @@ -24,11 +24,9 @@ project.tasks.withType(Javadoc) {
description = "Generates aggregated Javadoc API documentation."
title = "${project.name} ${version}"

if (JavaVersion.current().isJava8Compatible()) {
compileTestJava.options.compilerArgs += "-parameters"
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
compileTestJava.options.compilerArgs += "-parameters"
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}

options.addStringOption('charSet', 'UTF-8')
Expand Down
10 changes: 4 additions & 6 deletions reactor-netty-core/build.gradle
Expand Up @@ -140,12 +140,10 @@ dependencies {
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testRuntimeOnly "org.slf4j:jcl-over-slf4j:$slf4jVersion"

if (JavaVersion.current() > JavaVersion.VERSION_14) {
// https://github.com/netty/netty/pull/11487
// https://github.com/netty/netty/issues/10317
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
}
// https://github.com/netty/netty/pull/11487
// https://github.com/netty/netty/issues/10317
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"

for (dependency in project.configurations.shaded.dependencies) {
compileOnly(dependency)
Expand Down
12 changes: 5 additions & 7 deletions reactor-netty-http/build.gradle
Expand Up @@ -153,13 +153,11 @@ dependencies {
// Needed for HTTP/2 testing
testRuntimeOnly "io.netty:netty-tcnative-boringssl-static:$boringSslVersion$os_suffix"

if (JavaVersion.current() > JavaVersion.VERSION_14) {
// https://github.com/netty/netty/pull/11487
// https://github.com/netty/netty/issues/10317
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
noMicrometerTestRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
}
// https://github.com/netty/netty/pull/11487
// https://github.com/netty/netty/issues/10317
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
noMicrometerTestRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"

// noMicrometerTest sourceSet (must not include Micrometer)
noMicrometerTestImplementation "org.assertj:assertj-core:$assertJVersion"
Expand Down
10 changes: 4 additions & 6 deletions reactor-netty-incubator-quic/build.gradle
Expand Up @@ -49,12 +49,10 @@ dependencies {
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"

if (JavaVersion.current() > JavaVersion.VERSION_14) {
// https://github.com/netty/netty/pull/11487
// https://github.com/netty/netty/issues/10317
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
}
// https://github.com/netty/netty/pull/11487
// https://github.com/netty/netty/issues/10317
// Necessary for generating SelfSignedCertificate on Java version >= 15
testRuntimeOnly "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
}

jar {
Expand Down

0 comments on commit 63b8bf1

Please sign in to comment.