Skip to content

Commit 3f3832c

Browse files
committed
Run CI with Java 21
1 parent 9d5683f commit 3f3832c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/maven.yml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
os: [ubuntu-latest,windows-latest, macOS-latest]
2828
java: [8, 11, 17]
2929
jdk: [temurin, zulu, adopt-openj9]
30+
include:
31+
- os: ubuntu-latest
32+
java: 21
33+
jdk: corretto
3034
fail-fast: false
3135

3236
runs-on: ${{ matrix.os }}

pom.xml

+23
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,28 @@
104104
</plugins>
105105
</build>
106106
</profile>
107+
108+
<!-- TODO remove with parent pom or spotless plugin update https://github.com/diffplug/spotless/issues/1774 -->
109+
<profile>
110+
<id>java21+</id>
111+
<activation>
112+
<jdk>[21,)</jdk>
113+
</activation>
114+
<build>
115+
<plugins>
116+
<plugin>
117+
<groupId>com.diffplug.spotless</groupId>
118+
<artifactId>spotless-maven-plugin</artifactId>
119+
<configuration>
120+
<java>
121+
<palantirJavaFormat>
122+
<version>2.35.0</version>
123+
</palantirJavaFormat>
124+
</java>
125+
</configuration>
126+
</plugin>
127+
</plugins>
128+
</build>
129+
</profile>
107130
</profiles>
108131
</project>

0 commit comments

Comments
 (0)