diff --git a/build.gradle b/build.gradle index bf35ccf8b7..df408a2ffd 100644 --- a/build.gradle +++ b/build.gradle @@ -302,7 +302,7 @@ subprojects { options.charSet = 'UTF-8' options.links("https://www.javadoc.io/doc/org.agrona/agrona/${agronaVersion}/") - if (buildJavaVersion >= 21) { // early access JavaDoc location is different + if (buildJavaVersion > 21) { // early access JavaDoc location is different options.links("https://download.java.net/java/early_access/jdk${buildJavaVersion}/docs/api/") } else if (buildJavaVersion >= 11) {