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 4e15c94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11, 17, 20 ]
java-version: [ 8, 11, 17, 21 ]
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: 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 4e15c94

Please sign in to comment.