File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6060import static org .gradle .api .JavaVersion .VERSION_21 ;
6161import static org .gradle .api .JavaVersion .VERSION_22 ;
6262import static org .gradle .api .JavaVersion .VERSION_23 ;
63+ import static org .gradle .api .JavaVersion .VERSION_24 ;
6364
6465@ CacheableTask
6566public abstract class ThirdPartyAuditTask extends DefaultTask {
@@ -341,8 +342,12 @@ private String runForbiddenAPIsCli() throws IOException {
341342 spec .setExecutable (javaHome .get () + "/bin/java" );
342343 }
343344 spec .classpath (getForbiddenAPIsClasspath (), getThirdPartyClasspath ());
344- // Enable explicitly for each release as appropriate. Just JDK 20/21/22/23 for now, and just the vector module.
345- if (isJavaVersion (VERSION_20 ) || isJavaVersion (VERSION_21 ) || isJavaVersion (VERSION_22 ) || isJavaVersion (VERSION_23 )) {
345+ // Enable explicitly for each release as appropriate. Just JDK 20/21/22/23/24 for now, and just the vector module.
346+ if (isJavaVersion (VERSION_20 )
347+ || isJavaVersion (VERSION_21 )
348+ || isJavaVersion (VERSION_22 )
349+ || isJavaVersion (VERSION_23 )
350+ || isJavaVersion (VERSION_24 )) {
346351 spec .jvmArgs ("--add-modules" , "jdk.incubator.vector" );
347352 }
348353 spec .jvmArgs ("-Xmx1g" );
You can’t perform that action at this time.
0 commit comments