Skip to content

Commit

Permalink
Merge pull request #270 from thc202/ci/java21
Browse files Browse the repository at this point in the history
Add Java 21 to CI
  • Loading branch information
psiinon committed Jan 26, 2024
2 parents 3307874 + 3926dab commit e6d8f7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17, 20]
java: [11, 17, 21]

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ test {
useJUnitPlatform()
}

tasks.withType(JavaCompile) {
if (JavaVersion.current().getMajorVersion() >= "21") {
options.compilerArgs = options.compilerArgs + "-Xlint:-this-escape"
}
}

tasks.withType(Javadoc) {
options {
links = [ 'https://docs.oracle.com/javase/11/docs/api/' ]
Expand Down

0 comments on commit e6d8f7e

Please sign in to comment.