Skip to content

Commit 97ac86c

Browse files
committed
HV-1914 Test against JDK 20 (early access)
1 parent 21d46a2 commit 97ac86c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ stage('Configure') {
127127
// even if we don't use these features, just enabling them can cause side effects
128128
// and it's useful to test that.
129129
new JdkBuildEnvironment(testJavaVersion: '19', testCompilerTool: 'OpenJDK 19 Latest',
130+
testLauncherArgs: '--enable-preview',
131+
condition: TestCondition.AFTER_MERGE),
132+
new JdkBuildEnvironment(testJavaVersion: '20', testCompilerTool: 'OpenJDK 20 Latest',
130133
testLauncherArgs: '--enable-preview',
131134
condition: TestCondition.AFTER_MERGE)
132135
],

pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@
14821482
</properties>
14831483
</profile>
14841484
<profile>
1485-
<id>jdk19+</id>
1485+
<id>testWithJdk19</id>
14861486
<activation>
14871487
<property>
14881488
<name>java-version.test.release</name>
@@ -1496,6 +1496,21 @@
14961496
<surefire.jvm.args.java-version>-Dnet.bytebuddy.experimental=true</surefire.jvm.args.java-version>
14971497
</properties>
14981498
</profile>
1499+
<profile>
1500+
<id>testWithJdk20</id>
1501+
<activation>
1502+
<property>
1503+
<name>java-version.test.release</name>
1504+
<value>20</value>
1505+
</property>
1506+
</activation>
1507+
<properties>
1508+
<!-- ForbiddenAPIs doesn't work with JDK20+ yet -->
1509+
<forbiddenapis.skip>true</forbiddenapis.skip>
1510+
<!-- We need net.bytebuddy.experimental=true to make Bytebuddy work with JDK20+ -->
1511+
<surefire.jvm.args.java-version>-Dnet.bytebuddy.experimental=true</surefire.jvm.args.java-version>
1512+
</properties>
1513+
</profile>
14991514
<profile>
15001515
<id>jqassistant</id>
15011516
<!--

0 commit comments

Comments
 (0)