Skip to content

Commit

Permalink
HV-2069 Test against JDK 25
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Dec 12, 2024
1 parent 37f7765 commit fdadc44
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ stage('Configure') {
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE),
new JdkBuildEnvironment(testJavaVersion: '24', testCompilerTool: 'OpenJDK 24 Latest',
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE),
new JdkBuildEnvironment(testJavaVersion: '25', testCompilerTool: 'OpenJDK 25 Latest',
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE)
],
Expand Down
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,21 @@
<surefire.jvm.args.java-version>-Dnet.bytebuddy.experimental=true</surefire.jvm.args.java-version>
</properties>
</profile>
<profile>
<id>testWithJdk25</id>
<activation>
<property>
<name>java-version.test.release</name>
<value>25</value>
</property>
</activation>
<properties>
<!-- ForbiddenAPIs doesn't work with JDK25+ yet -->
<forbiddenapis.skip>true</forbiddenapis.skip>
<!-- We need net.bytebuddy.experimental=true to make Bytebuddy work with JDK25+ -->
<surefire.jvm.args.java-version>-Dnet.bytebuddy.experimental=true</surefire.jvm.args.java-version>
</properties>
</profile>
<profile>
<!--
This profile set some properties to make running reproducibility check build easier.
Expand Down

0 comments on commit fdadc44

Please sign in to comment.