Skip to content

Commit

Permalink
build with java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Jul 5, 2024
1 parent f5fd600 commit b818d13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: [ '17.0.x' ]
steps:
- uses: actions/[email protected]

- name: Set up JDK ${{ matrix.java-version }}
- name: "Set up JDK"
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
java-version: 21

- name: Build with Gradle
- name: "Build with Gradle"
run: ./gradlew build -x test --scan

- name: Run tests
- name: "Run tests"
if: always()
run: ./gradlew --no-build-cache cleanTest test
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
steps:
- uses: actions/[email protected]

- name: "Set up JDK 17.0.x"
- name: "Set up JDK"
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17.0.x'
java-version: '21'

- name: Set up GPG
run: echo -n "${GPG_PRIVATE_KEY}" | base64 --decode > ${GITHUB_WORKSPACE}/${GPG_KEY_ID}.gpg
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
}

Expand Down

0 comments on commit b818d13

Please sign in to comment.