Skip to content

Commit 7c32bc9

Browse files
authored
Enable vector module in third party audit tasks in Java 23 (#108638)
1 parent 1a05273 commit 7c32bc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import static org.gradle.api.JavaVersion.VERSION_20;
6161
import static org.gradle.api.JavaVersion.VERSION_21;
6262
import static org.gradle.api.JavaVersion.VERSION_22;
63+
import static org.gradle.api.JavaVersion.VERSION_23;
6364

6465
@CacheableTask
6566
public abstract class ThirdPartyAuditTask extends DefaultTask {
@@ -336,8 +337,8 @@ private String runForbiddenAPIsCli() throws IOException {
336337
spec.setExecutable(javaHome.get() + "/bin/java");
337338
}
338339
spec.classpath(getForbiddenAPIsClasspath(), classpath);
339-
// Enable explicitly for each release as appropriate. Just JDK 20/21/22 for now, and just the vector module.
340-
if (isJavaVersion(VERSION_20) || isJavaVersion(VERSION_21) || isJavaVersion(VERSION_22)) {
340+
// Enable explicitly for each release as appropriate. Just JDK 20/21/22/23 for now, and just the vector module.
341+
if (isJavaVersion(VERSION_20) || isJavaVersion(VERSION_21) || isJavaVersion(VERSION_22) || isJavaVersion(VERSION_23)) {
341342
spec.jvmArgs("--add-modules", "jdk.incubator.vector");
342343
}
343344
spec.jvmArgs("-Xmx1g");

0 commit comments

Comments
 (0)