Skip to content

Commit

Permalink
Run CI with Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Sep 12, 2023
1 parent 9d5683f commit 3f3832c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
os: [ubuntu-latest,windows-latest, macOS-latest]
java: [8, 11, 17]
jdk: [temurin, zulu, adopt-openj9]
include:
- os: ubuntu-latest
java: 21
jdk: corretto
fail-fast: false

runs-on: ${{ matrix.os }}
Expand Down
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,28 @@
</plugins>
</build>
</profile>

<!-- TODO remove with parent pom or spotless plugin update https://github.com/diffplug/spotless/issues/1774 -->
<profile>
<id>java21+</id>
<activation>
<jdk>[21,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<palantirJavaFormat>
<version>2.35.0</version>
</palantirJavaFormat>
</java>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 3f3832c

Please sign in to comment.