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 59
59
60
60
import static org .gradle .api .JavaVersion .VERSION_20 ;
61
61
import static org .gradle .api .JavaVersion .VERSION_21 ;
62
+ import static org .gradle .api .JavaVersion .VERSION_22 ;
62
63
63
64
@ CacheableTask
64
65
public abstract class ThirdPartyAuditTask extends DefaultTask {
@@ -338,8 +339,8 @@ private String runForbiddenAPIsCli() throws IOException {
338
339
spec .setExecutable (javaHome .get () + "/bin/java" );
339
340
}
340
341
spec .classpath (getForbiddenAPIsClasspath (), classpath );
341
- // Enable explicitly for each release as appropriate. Just JDK 20/21 for now, and just the vector module.
342
- if (isJavaVersion (VERSION_20 ) || isJavaVersion (VERSION_21 )) {
342
+ // Enable explicitly for each release as appropriate. Just JDK 20/21/22 for now, and just the vector module.
343
+ if (isJavaVersion (VERSION_20 ) || isJavaVersion (VERSION_21 ) || isJavaVersion ( VERSION_22 ) ) {
343
344
spec .jvmArgs ("--add-modules" , "jdk.incubator.vector" );
344
345
}
345
346
spec .jvmArgs ("-Xmx1g" );
You can’t perform that action at this time.
0 commit comments