Skip to content

Commit f6da1c4

Browse files
authored
Use palantir-java-format 2.57.0 on Java 21 (#2447)
* bump palantir to version 2.57.0 improved code formatting for Java 21 ref: palantir/palantir-java-format#952 * update readme files with changes * update copyright year in modified files * add "changed" labels
1 parent 519d36c commit f6da1c4

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13+
### Changed
14+
* Use palantir-java-format 2.57.0 on Java 21. ([#2447](https://github.com/diffplug/spotless/pull/2447))
1315

1416
## [3.1.0] - 2025-02-20
1517
### Added

lib/src/main/java/com/diffplug/spotless/java/PalantirJavaFormatStep.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2024 DiffPlug
2+
* Copyright 2016-2025 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ public class PalantirJavaFormatStep implements Serializable {
2929
private static final String DEFAULT_STYLE = "PALANTIR";
3030
private static final String NAME = "palantir-java-format";
3131
public static final String MAVEN_COORDINATE = "com.palantir.javaformat:palantir-java-format:";
32-
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "1.1.0").add(11, "2.28.0").add(21, "2.39.0");
32+
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "1.1.0").add(11, "2.28.0").add(21, "2.57.0");
3333

3434
/** The jar that contains the formatter. */
3535
private final JarState.Promised jarState;

plugin-gradle/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Changed
7+
* Use palantir-java-format 2.57.0 on Java 21. ([#2447](https://github.com/diffplug/spotless/pull/2447))
68

79
## [7.0.2] - 2025-01-14
810
### Fixed

plugin-maven/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Changed
7+
* Use palantir-java-format 2.57.0 on Java 21. ([#2447](https://github.com/diffplug/spotless/pull/2447))
68

79
## [2.44.3] - 2025-02-20
810
* Support for `clang-format` ([#2406](https://github.com/diffplug/spotless/pull/2406))

testlib/src/test/java/com/diffplug/spotless/java/PalantirJavaFormatStepTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2024 DiffPlug
2+
* Copyright 2022-2025 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -56,7 +56,7 @@ void behavior() throws Exception {
5656

5757
@Test
5858
void formatJavadoc() throws Exception {
59-
FormatterStep step = PalantirJavaFormatStep.create("2.39.0", "PALANTIR", true, TestProvisioner.mavenCentral());
59+
FormatterStep step = PalantirJavaFormatStep.create("2.57.0", "PALANTIR", true, TestProvisioner.mavenCentral());
6060
StepHarness.forStep(step)
6161
.testResource("java/palantirjavaformat/JavaCodeWithJavaDocUnformatted.test", "java/palantirjavaformat/JavaCodeWithJavaDocFormatted.test")
6262
.testResource("java/palantirjavaformat/JavaCodeWithPackageUnformatted.test", "java/palantirjavaformat/JavaCodeWithPackageFormatted.test");

0 commit comments

Comments
 (0)