Skip to content

Commit

Permalink
Use JDK 21 for release (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoox authored Jun 13, 2024
1 parent f47657e commit ce79aeb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- id: setup-jdk-17
name: Set up JDK 17
- id: setup-jdk-21
name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
run: |
sudo apt-get -y install graphviz
- id: setup-jdk-17
name: Set up JDK 17
- id: setup-jdk-21
name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tag-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true

- id: setup-jdk-17
name: Set up JDK 17
- id: setup-jdk-21
name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: Set up Gradle
uses: gradle/gradle-build-action@v2
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,6 @@ allprojects {
// Require to use JDK 21 when releasing.
tasks.release.doFirst {
if (JavaVersion.current() != JavaVersion.VERSION_21) {
throw new IllegalStateException("You must release using JDK 17.")
throw new IllegalStateException("You must release using JDK 21. Current: ${JavaVersion.current()}")
}
}

0 comments on commit ce79aeb

Please sign in to comment.