Skip to content

Commit

Permalink
[#1895] Update JDK to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Dec 12, 2024
1 parent 3d5d23b commit 077f85b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ jobs:
.gradle/wrapper
# refresh cache every month to avoid unlimited growth
key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Print the effective ORM version used
run: ./gradlew :${{ matrix.example }}:dependencyInsight --dependency org.hibernate.orm:hibernate-core
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
Expand Down Expand Up @@ -136,11 +136,11 @@ jobs:
.gradle/wrapper
# refresh cache every month to avoid unlimited growth
key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Print the effective ORM version used
run: ./gradlew :hibernate-reactive-core:dependencyInsight --dependency org.hibernate.orm:hibernate-core
- name: Build and Test with ${{ matrix.db }}
Expand All @@ -165,7 +165,7 @@ jobs:
# To see the available versions and download links on jdk.java.net:
# https://github.com/oracle-actions/setup-java/blob/main/jdk.java.net-uri.properties
java:
- { name: "11", java_version_numeric: 11 }
#- { name: "11", java_version_numeric: 11 }
- { name: "17", java_version_numeric: 17 }
# 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
Expand Down Expand Up @@ -245,11 +245,11 @@ jobs:
id: testjdk-exportpath
run: echo "::set-output name=path::${JAVA_HOME}"
# Always use JDK 11 to build the main code: that's what we use for releases.
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: 11
java-version: 17
check-latest: true
- name: Export path to JDK 11
id: mainjdk-exportpath
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build-snapshots:
strategy:
matrix:
branch: [ 'wip/2.3', 'wip/2.4' ]
branch: [ 'wip/2.3', 'wip/2.4', 'wip/3.0' ]
uses: ./.github/workflows/build.yml
with:
branch: ${{ matrix.branch }}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pluginManagement {

rootProject.name = 'hibernate-reactive'

gradle.ext.baselineJavaVersion = JavaLanguageVersion.of( 11 )
gradle.ext.baselineJavaVersion = JavaLanguageVersion.of( 17 )

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

0 comments on commit 077f85b

Please sign in to comment.