Skip to content

Commit

Permalink
Additional profile to allow build in Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Sep 12, 2023
1 parent 7c3e81d commit 1a785f3
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 @@ -598,5 +598,28 @@ under the License.
</plugins>
</build>
</profile>

<!-- TODO revert it with spotless plugin update with fix for 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.36.0</version>
</palantirJavaFormat>
</java>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 1a785f3

Please sign in to comment.