Skip to content

Commit ce758a1

Browse files
committed
[#1895] Upgrade baseline JDK to 17
1 parent 002fb47 commit ce758a1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 7 deletions
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
@@ -246,11 +245,11 @@ jobs:
246245
id: testjdk-exportpath
247246
run: echo "::set-output name=path::${JAVA_HOME}"
248247
# Always use JDK 11 to build the main code: that's what we use for releases.
249-
- name: Set up JDK 11
248+
- name: Set up JDK 17
250249
uses: actions/[email protected]
251250
with:
252251
distribution: 'temurin'
253-
java-version: 11
252+
java-version: 17
254253
check-latest: true
255254
- name: Export path to JDK 11
256255
id: mainjdk-exportpath

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/setup-java@v3
3131
with:
3232
distribution: temurin
33-
java-version: 11
33+
java-version: 17
3434

3535
- name: Initialize CodeQL
3636
uses: github/codeql-action/init@v2

settings.gradle

Lines changed: 1 addition & 1 deletion
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)