Skip to content

Commit 79bce4d

Browse files
committed
Make spotless plugin work with Java 21
1 parent 198388f commit 79bce4d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,29 @@
742742
</plugins>
743743
</reporting>
744744
</profile>
745+
746+
<!-- TODO remove with parent pom or spotless plugin update https://github.com/diffplug/spotless/issues/1774 -->
747+
<profile>
748+
<id>java21+</id>
749+
<activation>
750+
<jdk>[21,)</jdk>
751+
</activation>
752+
<build>
753+
<plugins>
754+
<plugin>
755+
<groupId>com.diffplug.spotless</groupId>
756+
<artifactId>spotless-maven-plugin</artifactId>
757+
<configuration>
758+
<java>
759+
<palantirJavaFormat>
760+
<version>2.35.0</version>
761+
</palantirJavaFormat>
762+
</java>
763+
</configuration>
764+
</plugin>
765+
</plugins>
766+
</build>
767+
</profile>
745768
</profiles>
746769

747770
</project>

0 commit comments

Comments
 (0)