Skip to content

Commit

Permalink
HSEARCH-4632 Test against JDK 20 (early access)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jul 11, 2022
1 parent 16e48e5 commit eaa7fd2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Expand Up @@ -185,6 +185,9 @@ stage('Configure') {
// even if we don't use these features, just enabling them can cause side effects
// and it's useful to test that.
new JdkBuildEnvironment(version: '19', testCompilerTool: 'OpenJDK 19 Latest',
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE),
new JdkBuildEnvironment(version: '20', testCompilerTool: 'OpenJDK 20 Latest',
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE)
],
Expand Down
19 changes: 19 additions & 0 deletions pom.xml
Expand Up @@ -2513,6 +2513,25 @@
</properties>
</profile>

<profile>
<id>testWithJdk20</id>
<activation>
<property>
<name>java-version.test.release</name>
<value>20</value>
</property>
</activation>
<properties>
<!-- We need net.bytebuddy.experimental=true to make BytecodeEnhancementIT and mockito-based tests pass -->
<surefire.jvm.args.java-version>
-Djdk.attach.allowAttachSelf=true
-Dnet.bytebuddy.experimental=true
</surefire.jvm.args.java-version>
<!-- Spring isn't ready for JDK20 yet -->
<failsafe.spring.skip>true</failsafe.spring.skip>
</properties>
</profile>

<profile>
<id>compiler-eclipse</id>
<build>
Expand Down

0 comments on commit eaa7fd2

Please sign in to comment.