Skip to content

Commit 2c43eb9

Browse files
committed
[hibernate#1895] Upgrade baseline JDK to 17
1 parent 7503cf5 commit 2c43eb9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/build.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ jobs:
9494
.gradle/wrapper
9595
# refresh cache every month to avoid unlimited growth
9696
key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
97-
- name: Set up JDK 11
97+
- name: Set up JDK 17
9898
uses: actions/[email protected]
9999
with:
100100
distribution: 'temurin'
101-
java-version: 11
101+
java-version: 17
102102
- name: Print the effective ORM version used
103103
run: ./gradlew :${{ matrix.example }}:dependencyInsight --dependency org.hibernate.orm:hibernate-core
104104
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
@@ -136,11 +136,11 @@ jobs:
136136
.gradle/wrapper
137137
# refresh cache every month to avoid unlimited growth
138138
key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
139-
- name: Set up JDK 11
139+
- name: Set up JDK 17
140140
uses: actions/[email protected]
141141
with:
142142
distribution: 'temurin'
143-
java-version: 11
143+
java-version: 17
144144
- name: Print the effective ORM version used
145145
run: ./gradlew :hibernate-reactive-core:dependencyInsight --dependency org.hibernate.orm:hibernate-core
146146
- name: Build and Test with ${{ matrix.db }}
@@ -165,7 +165,6 @@ jobs:
165165
# To see the available versions and download links on jdk.java.net:
166166
# https://github.com/oracle-actions/setup-java/blob/main/jdk.java.net-uri.properties
167167
java:
168-
- { name: "11", java_version_numeric: 11 }
169168
- { name: "17", java_version_numeric: 17 }
170169
# We want to enable preview features when testing newer builds of OpenJDK:
171170
# even if we don't use these features, just enabling them can cause side effects
@@ -245,11 +244,11 @@ jobs:
245244
id: testjdk-exportpath
246245
run: echo "::set-output name=path::${JAVA_HOME}"
247246
# Always use JDK 11 to build the main code: that's what we use for releases.
248-
- name: Set up JDK 11
247+
- name: Set up JDK 17
249248
uses: actions/[email protected]
250249
with:
251250
distribution: 'temurin'
252-
java-version: 11
251+
java-version: 17
253252
check-latest: true
254253
- name: Export path to JDK 11
255254
id: mainjdk-exportpath

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pluginManagement {
1313

1414
rootProject.name = 'hibernate-reactive'
1515

16-
gradle.ext.baselineJavaVersion = JavaLanguageVersion.of( 11 )
16+
gradle.ext.baselineJavaVersion = JavaLanguageVersion.of( 17 )
1717

1818
// Gradle does bytecode transformation on tests.
1919
// You can't use bytecode higher than what Gradle supports, even with toolchains.

0 commit comments

Comments
 (0)