Skip to content

Commit 478fb40

Browse files
committed
Bump plantirJavaFormatVersion to 2.72.0 to support Java 25-ea
1 parent b43c321 commit 478fb40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ limitations under the License.
354354
<junit5Version>5.13.3</junit5Version>
355355
<njord.version>0.7.5</njord.version>
356356
<spotless.action>apply</spotless.action>
357+
<plantirJavaFormatVersion>2.72.0</plantirJavaFormatVersion>
357358
<sisuMavenPluginVersion>0.9.0.M4</sisuMavenPluginVersion>
358359
<invoker.streamLogsOnFailures>true</invoker.streamLogsOnFailures>
359360

@@ -612,7 +613,11 @@ limitations under the License.
612613
<java>
613614
<!-- orders of used formatters are important -->
614615
<!-- eg. palantir override importOrder, so should be first -->
615-
<palantirJavaFormat />
616+
<palantirJavaFormat>
617+
<!-- Declare version so that spotless does not choose a version based on JDK version -->
618+
<!-- https://github.com/diffplug/spotless/issues/2503#issuecomment-2953146277 -->
619+
<version>${plantirJavaFormatVersion}</version>
620+
</palantirJavaFormat>
616621
<removeUnusedImports />
617622
<importOrder>
618623
<order>javax,java,,\#</order>
@@ -625,6 +630,7 @@ limitations under the License.
625630
<expandEmptyElements>false</expandEmptyElements>
626631
<!-- https://issues.apache.org/jira/browse/MRELEASE-1111 -->
627632
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
633+
<quiet>true</quiet>
628634
</sortPom>
629635
</pom>
630636
<markdown>

0 commit comments

Comments
 (0)