Skip to content

Commit

Permalink
Make spotless plugin work with Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Sep 4, 2023
1 parent 198388f commit b20ceb6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,29 @@
</plugins>
</reporting>
</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 b20ceb6

Please sign in to comment.