File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 60
60
import static org .gradle .api .JavaVersion .VERSION_20 ;
61
61
import static org .gradle .api .JavaVersion .VERSION_21 ;
62
62
import static org .gradle .api .JavaVersion .VERSION_22 ;
63
+ import static org .gradle .api .JavaVersion .VERSION_23 ;
63
64
64
65
@ CacheableTask
65
66
public abstract class ThirdPartyAuditTask extends DefaultTask {
@@ -336,8 +337,8 @@ private String runForbiddenAPIsCli() throws IOException {
336
337
spec .setExecutable (javaHome .get () + "/bin/java" );
337
338
}
338
339
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 ) ) {
341
342
spec .jvmArgs ("--add-modules" , "jdk.incubator.vector" );
342
343
}
343
344
spec .jvmArgs ("-Xmx1g" );
You can’t perform that action at this time.
0 commit comments