-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix integration tests running Maven on JDK 24
(cherry picked from commit 52d8176)
- Loading branch information
1 parent
e60653d
commit 59f01bb
Showing
3 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...form-tooling-support-tests/src/test/java/platform/tooling/support/tests/MavenEnvVars.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2015-2024 the original author or authors. | ||
* | ||
* All rights reserved. This program and the accompanying materials are | ||
* made available under the terms of the Eclipse Public License v2.0 which | ||
* accompanies this distribution and is available at | ||
* | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
*/ | ||
|
||
package platform.tooling.support.tests; | ||
|
||
import java.util.Map; | ||
|
||
import org.junit.jupiter.api.condition.JRE; | ||
|
||
final class MavenEnvVars { | ||
|
||
// https://issues.apache.org/jira/browse/MNG-8248 | ||
static final Map<String, String> FOR_JDK24_AND_LATER = JRE.currentVersion().compareTo(JRE.JAVA_24) >= 0 // | ||
? Map.of("MAVEN_OPTS", "--enable-native-access=ALL-UNNAMED") // | ||
: Map.of(); | ||
|
||
private MavenEnvVars() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters