Skip to content

Commit

Permalink
Build for Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
marianobarrios committed Nov 3, 2023
1 parent 38a0e63 commit 5ce3710
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11, 17, 20 ]
java-version: [ 8, 11, 17 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
java-version: |
${{ matrix.java-version }}
21
- run: export $JAVA_VERSION=${{ matrix.java-version }}
- run: env
- run: ./gradlew assemble check --info
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ plugins {
id 'maven-publish'
// pinned version due to Java 8 compatibility
id "com.diffplug.spotless" version "6.11.0"
// pinned version due to https://github.com/spotbugs/spotbugs/issues/2041
id "com.github.spotbugs" version "5.0.13"
id "com.github.spotbugs" version "5.2.1"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

compileJava {
Expand Down

0 comments on commit 5ce3710

Please sign in to comment.