Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This document is intended for Spotless developers.
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).

## [Unreleased]
### Changes
- Bump default `tabletest-formatter` version `1.0.1` -> `1.1.1`, now works with Java 17+.

## [4.4.0] - 2026-03-02
### Added
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ktfmt = "com.facebook:ktfmt:0.61"
palantir-java-format = "com.palantir.javaformat:palantir-java-format:1.1.0"
scalafmt-core = "org.scalameta:scalafmt-core_2.13:3.8.1"
sortpom-sorter = "com.github.ekryd.sortpom:sortpom-sorter:4.0.0"
tabletest-formatter-core = "org.tabletest:tabletest-formatter-core:1.0.1"
tabletest-formatter-core = "org.tabletest:tabletest-formatter-core:1.1.1"
zjsonpatch = "com.flipkart.zjsonpatch:zjsonpatch:0.4.16"

rewrite-recipe-migrate-java = "org.openrewrite.recipe:rewrite-migrate-java:3.28.0"
Expand Down
11 changes: 3 additions & 8 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ def NEEDS_GLUE = [
'palantirJavaFormat',
'scalafmt',
'sortPom',
'tableTestFormatter',
'zjsonPatch',
]
// tableTestFormatter requires Java 21+
if (JavaVersion.current() >= JavaVersion.VERSION_21) {
NEEDS_GLUE << 'tableTestFormatter'
}

for (glue in NEEDS_GLUE) {
sourceSets.register(glue) {
Expand Down Expand Up @@ -125,10 +122,8 @@ dependencies {
// sortPom
sortPomCompileOnly libs.sortpom.sorter
sortPomCompileOnly libs.slf4j.api
// tableTestFormatter (Java 21+ only)
if (JavaVersion.current() >= JavaVersion.VERSION_21) {
tableTestFormatterCompileOnly libs.tabletest.formatter.core
}
// tableTestFormatter
tableTestFormatterCompileOnly libs.tabletest.formatter.core
// zjsonPatch
zjsonPatchCompileOnly libs.zjsonpatch
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class TableTestFormatterStep implements Serializable {
private static final long serialVersionUID = 1L;
private static final String NAME = "tableTestFormatter";
private static final String MAVEN_COORDINATE = "org.tabletest:tabletest-formatter-core:";
private static final String DEFAULT_VERSION = "1.0.1";
private static final String DEFAULT_VERSION = "1.1.1";

private final JarState.Promised jarState;
private final String version;
Expand Down
2 changes: 2 additions & 0 deletions plugin-gradle/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).

## [Unreleased]
### Changes
- Bump default `tabletest-formatter` version `1.0.1` -> `1.1.1`, now works with Java 17+.

## [8.3.0] - 2026-03-02
### Added
Expand Down
4 changes: 2 additions & 2 deletions plugin-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ spotless {
java {
tableTestFormatter()
// optional: you can specify a specific version
tableTestFormatter('1.0.1')
tableTestFormatter('1.1.1')
```

<a name="applying-to-groovy-source"></a>
Expand Down Expand Up @@ -616,7 +616,7 @@ spotless {
kotlin {
tableTestFormatter()
// optional: you can specify a specific version
tableTestFormatter('1.0.1')
tableTestFormatter('1.1.1')
```

<a name="applying-scalafmt-to-scala-files"></a>
Expand Down
2 changes: 2 additions & 0 deletions plugin-maven/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).

## [Unreleased]
### Changes
- Bump default `tabletest-formatter` version `1.0.1` -> `1.1.1`, now works with Java 17+.

## [3.3.0] - 2026-03-02
### Added
Expand Down
4 changes: 2 additions & 2 deletions plugin-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ These mechanisms already exist for the Gradle plugin.

```xml
<tableTestFormatter>
<version>1.0.1</version> <!-- optional -->
<version>1.1.1</version> <!-- optional -->
</tableTestFormatter>
```

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

```xml
<tableTestFormatter>
<version>1.0.1</version> <!-- optional -->
<version>1.1.1</version> <!-- optional -->
</tableTestFormatter>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
*/
package com.diffplug.spotless.java;

import static org.junit.jupiter.api.condition.JRE.JAVA_21;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledForJreRange;

import com.diffplug.spotless.FormatterStep;
import com.diffplug.spotless.ResourceHarness;
Expand All @@ -28,10 +25,9 @@

class TableTestFormatterStepTest extends ResourceHarness {

private static final String VERSION = "1.0.1";
private static final String VERSION = "1.1.1";

@Test
@EnabledForJreRange(min = JAVA_21)
void behavior() {
FormatterStep step = TableTestFormatterStep.create(VERSION, TestProvisioner.mavenCentral());
try (StepHarnessWithFile harness = StepHarnessWithFile.forStep(this, step)) {
Expand All @@ -40,7 +36,6 @@ void behavior() {
}

@Test
@EnabledForJreRange(min = JAVA_21)
void equality() {
new SerializableEqualityTester() {
String version = VERSION;
Expand Down
Loading