Skip to content

Commit b09da49

Browse files
committed
feat: bump tabletest-formatter 1.0.1 -> 1.1.1
1 parent 8334155 commit b09da49

File tree

9 files changed

+16
-20
lines changed

9 files changed

+16
-20
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
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+
### Changes
14+
- Bump default `tabletest-formatter` version `1.0.1` -> `1.1.1`, now works with Java 17+.
1315

1416
## [4.4.0] - 2026-03-02
1517
### Added

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ktfmt = "com.facebook:ktfmt:0.61"
5454
palantir-java-format = "com.palantir.javaformat:palantir-java-format:1.1.0"
5555
scalafmt-core = "org.scalameta:scalafmt-core_2.13:3.8.1"
5656
sortpom-sorter = "com.github.ekryd.sortpom:sortpom-sorter:4.0.0"
57-
tabletest-formatter-core = "org.tabletest:tabletest-formatter-core:1.0.1"
57+
tabletest-formatter-core = "org.tabletest:tabletest-formatter-core:1.1.1"
5858
zjsonpatch = "com.flipkart.zjsonpatch:zjsonpatch:0.4.16"
5959

6060
rewrite-recipe-migrate-java = "org.openrewrite.recipe:rewrite-migrate-java:3.28.0"

lib/build.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@ def NEEDS_GLUE = [
2424
'palantirJavaFormat',
2525
'scalafmt',
2626
'sortPom',
27+
'tableTestFormatter',
2728
'zjsonPatch',
2829
]
29-
// tableTestFormatter requires Java 21+
30-
if (JavaVersion.current() >= JavaVersion.VERSION_21) {
31-
NEEDS_GLUE << 'tableTestFormatter'
32-
}
3330

3431
for (glue in NEEDS_GLUE) {
3532
sourceSets.register(glue) {
@@ -125,10 +122,8 @@ dependencies {
125122
// sortPom
126123
sortPomCompileOnly libs.sortpom.sorter
127124
sortPomCompileOnly libs.slf4j.api
128-
// tableTestFormatter (Java 21+ only)
129-
if (JavaVersion.current() >= JavaVersion.VERSION_21) {
130-
tableTestFormatterCompileOnly libs.tabletest.formatter.core
131-
}
125+
// tableTestFormatter
126+
tableTestFormatterCompileOnly libs.tabletest.formatter.core
132127
// zjsonPatch
133128
zjsonPatchCompileOnly libs.zjsonpatch
134129
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class TableTestFormatterStep implements Serializable {
3434
private static final long serialVersionUID = 1L;
3535
private static final String NAME = "tableTestFormatter";
3636
private static final String MAVEN_COORDINATE = "org.tabletest:tabletest-formatter-core:";
37-
private static final String DEFAULT_VERSION = "1.0.1";
37+
private static final String DEFAULT_VERSION = "1.1.1";
3838

3939
private final JarState.Promised jarState;
4040
private final String version;

plugin-gradle/CHANGES.md

Lines changed: 2 additions & 0 deletions
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+
### Changes
7+
- Bump default `tabletest-formatter` version `1.0.1` -> `1.1.1`, now works with Java 17+.
68

79
## [8.3.0] - 2026-03-02
810
### Added

plugin-gradle/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ spotless {
439439
java {
440440
tableTestFormatter()
441441
// optional: you can specify a specific version
442-
tableTestFormatter('1.0.1')
442+
tableTestFormatter('1.1.1')
443443
```
444444

445445
<a name="applying-to-groovy-source"></a>
@@ -616,7 +616,7 @@ spotless {
616616
kotlin {
617617
tableTestFormatter()
618618
// optional: you can specify a specific version
619-
tableTestFormatter('1.0.1')
619+
tableTestFormatter('1.1.1')
620620
```
621621

622622
<a name="applying-scalafmt-to-scala-files"></a>

plugin-maven/CHANGES.md

Lines changed: 2 additions & 0 deletions
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+
### Changes
7+
- Bump default `tabletest-formatter` version `1.0.1` -> `1.1.1`, now works with Java 17+.
68

79
## [3.3.0] - 2026-03-02
810
### Added

plugin-maven/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ These mechanisms already exist for the Gradle plugin.
407407

408408
```xml
409409
<tableTestFormatter>
410-
<version>1.0.1</version> <!-- optional -->
410+
<version>1.1.1</version> <!-- optional -->
411411
</tableTestFormatter>
412412
```
413413

@@ -543,7 +543,7 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.
543543

544544
```xml
545545
<tableTestFormatter>
546-
<version>1.0.1</version> <!-- optional -->
546+
<version>1.1.1</version> <!-- optional -->
547547
</tableTestFormatter>
548548
```
549549

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
*/
1616
package com.diffplug.spotless.java;
1717

18-
import static org.junit.jupiter.api.condition.JRE.JAVA_21;
19-
2018
import org.junit.jupiter.api.Test;
21-
import org.junit.jupiter.api.condition.EnabledForJreRange;
2219

2320
import com.diffplug.spotless.FormatterStep;
2421
import com.diffplug.spotless.ResourceHarness;
@@ -28,10 +25,9 @@
2825

2926
class TableTestFormatterStepTest extends ResourceHarness {
3027

31-
private static final String VERSION = "1.0.1";
28+
private static final String VERSION = "1.1.1";
3229

3330
@Test
34-
@EnabledForJreRange(min = JAVA_21)
3531
void behavior() {
3632
FormatterStep step = TableTestFormatterStep.create(VERSION, TestProvisioner.mavenCentral());
3733
try (StepHarnessWithFile harness = StepHarnessWithFile.forStep(this, step)) {
@@ -40,7 +36,6 @@ void behavior() {
4036
}
4137

4238
@Test
43-
@EnabledForJreRange(min = JAVA_21)
4439
void equality() {
4540
new SerializableEqualityTester() {
4641
String version = VERSION;

0 commit comments

Comments
 (0)