Skip to content

Commit 2574fb6

Browse files
committed
Merge branch 'main' into feat/bump-solstice
2 parents 187b7fe + 357274a commit 2574fb6

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1818
* When P2 download fails, indicate the responsible formatter. ([#1698](https://github.com/diffplug/spotless/issues/1698))
1919
* Fixed a regression which changed the import sorting order in `googleJavaFormat` introduced in `2.38.0`. ([#1680](https://github.com/diffplug/spotless/pull/1680))
2020
### Changes
21-
* Bump default sortpom version to latest `3.0.0` -> `3.2.1`. ([#1675](https://github.com/diffplug/spotless/pull/1675))
21+
* Bump default `googleJavaFormat` version to latest `1.16.0` -> `1.17.0`. ([#1710](https://github.com/diffplug/spotless/pull/1710))
22+
* Bump default `ktfmt` version to latest `0.43` -> `0.44`.([#1691](https://github.com/diffplug/spotless/pull/1691))
2223
* Bump default `ktlint` version to latest `0.48.2` -> `0.49.1`.([#1696](https://github.com/diffplug/spotless/issues/1696))
2324
* Dropped support for `ktlint 0.46.x` following our policy of supporting two breaking changes at a time.
25+
* Bump default `sortpom` version to latest `3.0.0` -> `3.2.1`. ([#1675](https://github.com/diffplug/spotless/pull/1675))
2426

2527
## [2.38.0] - 2023-04-06
2628
### Added

lib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ dependencies {
8181
gherkinCompileOnly 'io.cucumber:gherkin-utils:8.0.2'
8282
gherkinCompileOnly 'org.slf4j:slf4j-api:2.0.0'
8383
// googleJavaFormat
84-
googleJavaFormatCompileOnly 'com.google.googlejavaformat:google-java-format:1.16.0'
84+
googleJavaFormatCompileOnly 'com.google.googlejavaformat:google-java-format:1.17.0'
8585
// gson
8686
gsonCompileOnly 'com.google.code.gson:gson:2.10.1'
8787
// jackson
8888
String VER_JACKSON='2.14.2'
8989
jacksonCompileOnly "com.fasterxml.jackson.core:jackson-databind:$VER_JACKSON"
9090
jacksonCompileOnly "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$VER_JACKSON"
9191
// ktfmt
92-
ktfmtCompileOnly "com.facebook:ktfmt:0.43"
92+
ktfmtCompileOnly "com.facebook:ktfmt:0.44"
9393
ktfmtCompileOnly("com.google.googlejavaformat:google-java-format") {
9494
version {
9595
strictly '1.7' // for JDK 8 compatibility

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public static FormatterStep create(String groupArtifact, String version, String
7272
static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME)
7373
.addMin(11, "1.8") // we only support google-java-format >= 1.8 due to api changes
7474
.addMin(16, "1.10.0") // java 16 requires at least 1.10.0 due to jdk api changes in JavaTokenizer
75-
.add(11, "1.16.0"); // default version
75+
.addMin(21, "1.17.0") // java 21 requires at least 1.17.0 due to https://github.com/google/google-java-format/issues/898
76+
.add(11, "1.17.0"); // default version
7677

7778
public static String defaultGroupArtifact() {
7879
return MAVEN_COORDINATE;

lib/src/main/java/com/diffplug/spotless/kotlin/KtfmtStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class KtfmtStep {
3939
// prevent direct instantiation
4040
private KtfmtStep() {}
4141

42-
private static final String DEFAULT_VERSION = "0.43";
42+
private static final String DEFAULT_VERSION = "0.44";
4343
static final String NAME = "ktfmt";
4444
static final String PACKAGE = "com.facebook";
4545
static final String MAVEN_COORDINATE = PACKAGE + ":ktfmt:";

plugin-gradle/CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1111
* When P2 download fails, indicate the responsible formatter. ([#1698](https://github.com/diffplug/spotless/issues/1698))
1212
* Fixed a regression which changed the import sorting order in `googleJavaFormat` introduced in `6.18.0`. ([#1680](https://github.com/diffplug/spotless/pull/1680))
1313
### Changes
14-
* Bump default sortpom version to latest `3.0.0` -> `3.2.1`. ([#1675](https://github.com/diffplug/spotless/pull/1675))
14+
* Bump default `googleJavaFormat` version to latest `1.16.0` -> `1.17.0`. ([#1710](https://github.com/diffplug/spotless/pull/1710))
15+
* Bump default `ktfmt` version to latest `0.43` -> `0.44`.([#1691](https://github.com/diffplug/spotless/pull/1691))
1516
* Bump default `ktlint` version to latest `0.48.2` -> `0.49.1`.([#1696](https://github.com/diffplug/spotless/issues/1696))
1617
* Dropped support for `ktlint 0.46.x` following our policy of supporting two breaking changes at a time.
18+
* Bump default `sortpom` version to latest `3.0.0` -> `3.2.1`. ([#1675](https://github.com/diffplug/spotless/pull/1675))
1719

1820
## [6.18.0] - 2023-04-06
1921
### Added

plugin-maven/CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1111
* When P2 download fails, indicate the responsible formatter. ([#1698](https://github.com/diffplug/spotless/issues/1698))
1212
* Fixed a regression which changed the import sorting order in `googleJavaFormat` introduced in `2.36.0`. ([#1680](https://github.com/diffplug/spotless/pull/1680))
1313
### Changes
14-
* Bump default sortpom version to latest `3.0.0` -> `3.2.1`. ([#1675](https://github.com/diffplug/spotless/pull/1675))
14+
* Bump default `googleJavaFormat` version to latest `1.16.0` -> `1.17.0`. ([#1710](https://github.com/diffplug/spotless/pull/1710))
15+
* Bump default `ktfmt` version to latest `0.43` -> `0.44`.([#1691](https://github.com/diffplug/spotless/pull/1691))
1516
* Bump default `ktlint` version to latest `0.48.2` -> `0.49.1`.([#1696](https://github.com/diffplug/spotless/issues/1696))
1617
* Dropped support for `ktlint 0.46.x` following our policy of supporting two breaking changes at a time.
18+
* Bump default `sortpom` version to latest `3.0.0` -> `3.2.1`. ([#1675](https://github.com/diffplug/spotless/pull/1675))
1719

1820
## [2.36.0] - 2023-04-06
1921
### Added

testlib/src/test/java/com/diffplug/spotless/kotlin/KtfmtStepTest.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
*/
1616
package com.diffplug.spotless.kotlin;
1717

18-
import org.junit.jupiter.api.Disabled;
1918
import org.junit.jupiter.api.Test;
2019

2120
import com.diffplug.spotless.*;
2221

23-
@Disabled
2422
class KtfmtStepTest extends ResourceHarness {
2523
@Test
2624
void behavior() throws Exception {
@@ -34,23 +32,17 @@ void dropboxStyle_0_18() throws Exception {
3432
StepHarness.forStep(step).testResource("kotlin/ktfmt/basic.dirty", "kotlin/ktfmt/basic-dropboxstyle.clean");
3533
}
3634

37-
@Test
38-
void dropboxStyle_0_19() throws Exception {
39-
FormatterStep step = KtfmtStep.create("0.19", TestProvisioner.mavenCentral(), KtfmtStep.Style.DROPBOX, null);
40-
StepHarness.forStep(step).testResource("kotlin/ktfmt/basic.dirty", "kotlin/ktfmt/basic-dropboxstyle.clean");
41-
}
42-
4335
@Test
4436
void equality() throws Exception {
4537
new SerializableEqualityTester() {
46-
String version = "0.13";
38+
String version = "0.18";
4739

4840
@Override
4941
protected void setupTest(API api) {
5042
// same version == same
5143
api.areDifferentThan();
5244
// change the version, and it's different
53-
version = "0.12";
45+
version = KtfmtStep.defaultVersion();
5446
api.areDifferentThan();
5547
}
5648

0 commit comments

Comments
 (0)