mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
We need to explicitly add the incubating vector API module to the third
party audit task on Java 24.
(cherry picked from commit 0c667ecd2a
)
# Conflicts:
# build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java
This commit is contained in:
parent
bdb9d982c9
commit
ddd80c58f2
1 changed files with 7 additions and 2 deletions
|
@ -61,6 +61,7 @@ import static org.gradle.api.JavaVersion.VERSION_20;
|
|||
import static org.gradle.api.JavaVersion.VERSION_21;
|
||||
import static org.gradle.api.JavaVersion.VERSION_22;
|
||||
import static org.gradle.api.JavaVersion.VERSION_23;
|
||||
import static org.gradle.api.JavaVersion.VERSION_24;
|
||||
|
||||
@CacheableTask
|
||||
public abstract class ThirdPartyAuditTask extends DefaultTask {
|
||||
|
@ -346,8 +347,12 @@ public abstract class ThirdPartyAuditTask extends DefaultTask {
|
|||
spec.setExecutable(javaHome.get() + "/bin/java");
|
||||
}
|
||||
spec.classpath(getForbiddenAPIsClasspath(), classpath);
|
||||
// Enable explicitly for each release as appropriate. Just JDK 20/21/22/23 for now, and just the vector module.
|
||||
if (isJavaVersion(VERSION_20) || isJavaVersion(VERSION_21) || isJavaVersion(VERSION_22) || isJavaVersion(VERSION_23)) {
|
||||
// Enable explicitly for each release as appropriate. Just JDK 20/21/22/23/24 for now, and just the vector module.
|
||||
if (isJavaVersion(VERSION_20)
|
||||
|| isJavaVersion(VERSION_21)
|
||||
|| isJavaVersion(VERSION_22)
|
||||
|| isJavaVersion(VERSION_23)
|
||||
|| isJavaVersion(VERSION_24)) {
|
||||
spec.jvmArgs("--add-modules", "jdk.incubator.vector");
|
||||
}
|
||||
spec.jvmArgs("-Xmx1g");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue