Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
# Different branches might have different versions of Develocity, and we want to make sure
# that we publish with the one that we built the scan with in the first place.
ref: ${{ steps.determine_branch_ref.outputs.original_branch_ref }}
- name: Set up Java 21
- name: Set up Java 25
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # 5.0.0
with:
java-version: 21
java-version: 25
distribution: temurin
# https://github.com/actions/cache/blob/main/examples.md#java---maven
- name: Cache local Maven repository
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
matrix:
os:
- {
name: "Linux JDK 21",
name: "Linux JDK 25",
runs-on: 'ubuntu-latest',
java: {
version: 21
version: 25
},
maven: {
# Since we only start an Elasticsearch container on Linux we add the profile to enable container reuse here:
Expand All @@ -75,10 +75,10 @@ jobs:
# so we can't run Elasticsearch tests.
# See https://github.com/actions/runner-images/issues/1143#issuecomment-972929995
- {
name: "Windows JDK 21",
name: "Windows JDK 25",
runs-on: 'windows-latest',
java: {
version: 21
version: 25
},
maven: {
args: '-Dtest.elasticsearch.skip=true'
Expand Down
14 changes: 4 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
* pr: ...
*/

@Field final String DEFAULT_JDK_TOOL = 'OpenJDK 21 Latest'
@Field final String DEFAULT_JDK_TOOL = 'OpenJDK 25 Latest'
@Field final String MAVEN_TOOL = 'Apache Maven 3.9'

// Default node pattern, to be used for resource-intensive stages.
Expand Down Expand Up @@ -174,8 +174,7 @@ stage('Configure') {
new JdkBuildEnvironment(version: '17', testCompilerTool: 'OpenJDK 17 Latest',
condition: TestCondition.AFTER_MERGE),
new JdkBuildEnvironment(version: '21', testCompilerTool: 'OpenJDK 21 Latest',
condition: TestCondition.BEFORE_MERGE,
isDefault: true),
condition: TestCondition.AFTER_MERGE),
// We want to enable preview features when testing newer builds of OpenJDK:
// even if we don't use these features, just enabling them can cause side effects
// and it's useful to test that.
Expand All @@ -184,15 +183,10 @@ stage('Configure') {
// they require the use of -Dnet.bytebuddy.experimental=true.
// Make sure to remove that argument as soon as possible
// -- generally that requires upgrading bytebuddy in Hibernate ORM after the JDK goes GA.
new JdkBuildEnvironment(version: '23', testCompilerTool: 'OpenJDK 23 Latest',
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE),
new JdkBuildEnvironment(version: '24', testCompilerTool: 'OpenJDK 24 Latest',
testLauncherArgs: '--enable-preview -Dnet.bytebuddy.experimental=true',
condition: TestCondition.AFTER_MERGE),
new JdkBuildEnvironment(version: '25', testCompilerTool: 'OpenJDK 25 Latest',
testLauncherArgs: '--enable-preview -Dnet.bytebuddy.experimental=true',
condition: TestCondition.AFTER_MERGE),
condition: TestCondition.BEFORE_MERGE,
isDefault: true),
new JdkBuildEnvironment(version: '26', testCompilerTool: 'OpenJDK 26 Latest',
testLauncherArgs: '--enable-preview -Dnet.bytebuddy.experimental=true',
condition: TestCondition.AFTER_MERGE)
Expand Down
6 changes: 6 additions & 0 deletions build/parents/build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,13 +1109,17 @@
<bundledSignature>jdk-deprecated-20</bundledSignature>
<bundledSignature>jdk-deprecated-21</bundledSignature>
<bundledSignature>jdk-deprecated-22</bundledSignature>
<bundledSignature>jdk-deprecated-23</bundledSignature>
<bundledSignature>jdk-deprecated-24</bundledSignature>

<bundledSignature>jdk-internal-17</bundledSignature>
<bundledSignature>jdk-internal-18</bundledSignature>
<bundledSignature>jdk-internal-19</bundledSignature>
<bundledSignature>jdk-internal-20</bundledSignature>
<bundledSignature>jdk-internal-21</bundledSignature>
<bundledSignature>jdk-internal-22</bundledSignature>
<bundledSignature>jdk-internal-23</bundledSignature>
<bundledSignature>jdk-internal-24</bundledSignature>
</bundledSignatures>
<signaturesArtifacts>
<signaturesArtifact>
Expand Down Expand Up @@ -1149,6 +1153,7 @@
<execution>
<id>verify-forbidden-apis-main-internal</id>
<configuration>
<releaseVersion>24</releaseVersion>
<bundledSignatures>
<!-- This will automatically choose the right signatures based on 'targetVersion': -->
<bundledSignature>jdk-unsafe</bundledSignature>
Expand All @@ -1175,6 +1180,7 @@
<execution>
<id>verify-forbidden-apis-tests</id>
<configuration>
<testReleaseVersion>24</testReleaseVersion>
<bundledSignatures>
<!-- This will automatically choose the right signatures based on 'targetVersion': -->
<bundledSignature>jdk-unsafe</bundledSignature>
Expand Down
2 changes: 1 addition & 1 deletion ci/dependency-update/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def pullContainerImages() {
}

def withMavenWorkspace(Closure body) {
def actualJdk = settings().testCompilerTool == null ? 'OpenJDK 21 Latest' : settings().testCompilerTool
def actualJdk = settings().testCompilerTool == null ? 'OpenJDK 25 Latest' : settings().testCompilerTool
withMaven(jdk: actualJdk, maven: 'Apache Maven 3.9',
mavenLocalRepo: env.WORKSPACE_TMP + '/.m2repository',
options: [
Expand Down
2 changes: 1 addition & 1 deletion ci/nightly/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@Library('hibernate-jenkins-pipeline-helpers') _

def withMavenWorkspace(Closure body) {
withMaven(jdk: 'OpenJDK 21 Latest', maven: 'Apache Maven 3.9',
withMaven(jdk: 'OpenJDK 25 Latest', maven: 'Apache Maven 3.9',
mavenLocalRepo: env.WORKSPACE_TMP + '/.m2repository',
options: [
// Artifacts are not needed and take up disk space
Expand Down
4 changes: 2 additions & 2 deletions ci/performance/elasticsearch/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import groovy.transform.Field
import org.hibernate.jenkins.pipeline.helpers.job.JobHelper

@Field final String MAVEN_TOOL = 'Apache Maven 3.9'
@Field final String JDK_TOOL = 'OpenJDK 21 Latest'
@Field final String JDK_TOOL = 'OpenJDK 25 Latest'

// Performance node pattern, to be used for stages involving performance tests.
@Field final String PERFORMANCE_NODE_PATTERN = 'Performance'
Expand Down Expand Up @@ -119,4 +119,4 @@ class EsAwsBuildEnvironment {
String getLockedResourcesLabel() {
"es-aws-${nameEmbeddableVersion}"
}
}
}
2 changes: 1 addition & 1 deletion ci/performance/lucene/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import groovy.transform.Field
import org.hibernate.jenkins.pipeline.helpers.job.JobHelper

@Field final String MAVEN_TOOL = 'Apache Maven 3.9'
@Field final String JDK_TOOL = 'OpenJDK 21 Latest'
@Field final String JDK_TOOL = 'OpenJDK 25 Latest'

// Performance node pattern, to be used for stages involving performance tests.
@Field final String PERFORMANCE_NODE_PATTERN = 'Performance'
Expand Down
2 changes: 1 addition & 1 deletion ci/release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pipeline {
}
tools {
maven 'Apache Maven 3.9'
jdk 'OpenJDK 21 Latest'
jdk 'OpenJDK 25 Latest'
}
options {
buildDiscarder logRotator(daysToKeepStr: '30', numToKeepStr: '10')
Expand Down
2 changes: 1 addition & 1 deletion ci/snapshot-publish/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pipeline {
}
tools {
maven 'Apache Maven 3.9'
jdk 'OpenJDK 21 Latest'
jdk 'OpenJDK 25 Latest'
}
options {
// Wait for 1h before publishing snapshots, in case there's more commits.
Expand Down
24 changes: 4 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@

<!-- JDK version required for the build; we target 17 but require at least 21 for the build -->
<!-- Adjust contributing guide when changing the minimum required JDK version -->
<jdk.min.version>21</jdk.min.version>
<jdk.min.version>25</jdk.min.version>
<!-- The lowest supported version of Java for applications using Hibernate Search -->
<!-- Set statically, independently from the current JDK: we want our code to comply with this version -->
<!-- Adjust the contributing guide when changing the release Java version -->
<java-version.main.release>17</java-version.main.release>
<java-version.main.compiler.java_home>${java.home}</java-version.main.compiler.java_home>
<java-version.main.compiler>${java-version.main.compiler.java_home}/bin/javac</java-version.main.compiler>
<!-- The versions of Java documented as supported for applications using Hibernate Search -->
<java-version.main.compatible.expected.text>17, 21 or 23</java-version.main.compatible.expected.text>
<java-version.main.compatible.expected.text>17, 21 or 25</java-version.main.compatible.expected.text>
<!-- The version of test bytecode, useful for testing compatibility with newer JDKs -->
<!-- Set to the expected version of the JDK running Maven by default, but overridden on CI -->
<java-version.test.release>${jdk.min.version}</java-version.test.release>
Expand Down Expand Up @@ -1347,27 +1347,11 @@
</properties>
</profile>

<profile>
<id>testWithJdk24</id>
<activation>
<property>
<name>java-version.test.release</name>
<value>24</value>
</property>
</activation>
<properties>
<!-- Spring Boot 3 isn't ready for JDK24 yet -->
<failsafe.spring.skip>true</failsafe.spring.skip>
</properties>
</profile>

<profile>
<id>testWithJdk25</id>
<activation>
<property>
<name>java-version.test.release</name>
<value>25</value>
</property>
<!-- Hack to activate by default, except when explicitly disabled -->
<jdk>[25,)</jdk>
</activation>
<properties>
<!-- Spring Boot 3 isn't ready for JDK25 yet -->
Expand Down