Skip to content

Commit c067d28

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feature/intellij-formatter
2 parents 9568b51 + 2d32ccd commit c067d28

File tree

80 files changed

+1327
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1327
-330
lines changed

renovate.json renamed to .github/renovate.json5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:base"
4+
"config:recommended",
55
],
66
"packageRules": [
77
{
88
"groupName": "Ktlint",
99
"enabled": false,
10-
"matchPackagePatterns": [
11-
"com.pinterest.ktlint:*"
10+
"matchPackageNames": [
11+
"/com.pinterest.ktlint:*/",
1212
]
1313
}
1414
]

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: jdk 11
4242
uses: actions/setup-java@v4
4343
with:
44-
java-version: 11
44+
java-version: 17
4545
distribution: 'temurin'
4646
- name: gradle caching
4747
uses: gradle/actions/setup-gradle@v4

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ local.properties
6767

6868
## Directory-based project format:
6969
.idea/
70+
!.idea/icon.png
7071
# if you remove the above rule, at least ignore the following:
7172

7273
# User-specific stuff:

.idea/icon.png

1.6 KB
Loading

CHANGES.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,55 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1212
## [Unreleased]
1313
### Added
1414
* Support for `idea` ([#2020](https://github.com/diffplug/spotless/pull/2020))
15+
* Add support for removing wildcard imports via `removeWildcardImports` step. ([#2517](https://github.com/diffplug/spotless/pull/2517))
16+
17+
## [3.1.2] - 2025-05-27
18+
### Fixed
19+
* Fix `UnsupportedOperationException` in the Gradle plugin when using `targetExcludeContent[Pattern]` ([#2487](https://github.com/diffplug/spotless/pull/2487))
20+
* pgp key had expired, this and future releases will be signed by new key ([details](https://github.com/diffplug/spotless/discussions/2464))
21+
### Changed
22+
* Bump default `eclipse` version to latest `4.34` -> `4.35`. ([#2458](https://github.com/diffplug/spotless/pull/2458))
23+
* Bump default `greclipse` version to latest `4.32` -> `4.35`. ([#2458](https://github.com/diffplug/spotless/pull/2458))
24+
25+
## [3.1.1] - 2025-04-07
26+
### Changed
27+
* Use palantir-java-format 2.57.0 on Java 21. ([#2447](https://github.com/diffplug/spotless/pull/2447))
28+
* Re-try `npm install` with `--prefer-online` after `ERESOLVE` error. ([#2448](https://github.com/diffplug/spotless/pull/2448))
29+
* Allow multiple npm-based formatters having the same module dependencies, to share a `node_modules` dir without race conditions. [#2462](https://github.com/diffplug/spotless/pull/2462))
30+
31+
## [3.1.0] - 2025-02-20
32+
### Added
33+
* Support for`clang-format` on maven-plugin ([#2406](https://github.com/diffplug/spotless/pull/2406))
34+
* Allow overriding classLoader for all `JarState`s to enable spotless-cli ([#2427](https://github.com/diffplug/spotless/pull/2427))
35+
36+
## [3.0.2] - 2025-01-14
37+
### Fixed
38+
* Node.JS-based tasks now work with the configuration cache ([#2372](https://github.com/diffplug/spotless/issues/2372))
39+
* Eclipse-based tasks can now handle parallel configuration ([#2389](https://github.com/diffplug/spotless/issues/2389))
40+
41+
## [3.0.1] - 2025-01-07
42+
### Fixed
43+
* Deployment was missing part of the CDT formatter, now fixed. ([#2384](https://github.com/diffplug/spotless/issues/2384))
44+
45+
## [3.0.0] - 2025-01-06
46+
## Headline changes
47+
* All steps now support roundtrip serialization (end of [#987](https://github.com/diffplug/spotless/issues/987)).
48+
* Spotless now supports [linting](https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md#lints) in addition to formatting.
1549
### Changed
1650
* Allow setting Eclipse config from a string, not only from files ([#2337](https://github.com/diffplug/spotless/pull/2337))
1751
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
1852
* Add _Sort Members_ feature based on [Eclipse JDT](plugin-gradle/README.md#eclipse-jdt) implementation. ([#2312](https://github.com/diffplug/spotless/pull/2312))
1953
* Bump default `jackson` version to latest `2.18.0` -> `2.18.1`. ([#2319](https://github.com/diffplug/spotless/pull/2319))
2054
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320))
2155
* Bump default `ktlint` version to latest `1.4.0` -> `1.5.0`. ([#2354](https://github.com/diffplug/spotless/pull/2354))
56+
* Bump minimum `eclipse-cdt` version to `11.0` (removed support for `10.7`). ([#2373](https://github.com/diffplug/spotless/pull/2373))
57+
* Bump default `eclipse` version to latest `4.32` -> `4.34`. ([#2381](https://github.com/diffplug/spotless/pull/2381))
58+
2259
### Fixed
2360
* You can now use `removeUnusedImports` and `googleJavaFormat` at the same time again. (fixes [#2159](https://github.com/diffplug/spotless/issues/2159))
2461
* The default list of type annotations used by `formatAnnotations` now includes Jakarta Validation's `Valid` and constraints validations (fixes [#2334](https://github.com/diffplug/spotless/issues/2334))
2562

63+
2664
## [3.0.0.BETA4] - 2024-10-24
2765
### Added
2866
* APIs to support linting. (implemented in [#2148](https://github.com/diffplug/spotless/pull/2148), [#2149](https://github.com/diffplug/spotless/pull/2149), [#2307](https://github.com/diffplug/spotless/pull/2307))
@@ -34,6 +72,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
3472
### Changed
3573
* **BREAKING** Moved `PaddedCell.DirtyState` to its own top-level class with new methods. ([#2148](https://github.com/diffplug/spotless/pull/2148))
3674
* **BREAKING** Removed `isClean`, `applyTo`, and `applyToAndReturnResultIfDirty` from `Formatter` because users should instead use `DirtyState`.
75+
* `FenceStep` now uses `ConfigurationCacheHack`. ([#2378](https://github.com/diffplug/spotless/pull/2378) fixes [#2317](https://github.com/diffplug/spotless/issues/2317))
3776
### Fixed
3877
* `ktlint` steps now read from the `string` instead of the `file` so they don't clobber earlier steps. (fixes [#1599](https://github.com/diffplug/spotless/issues/1599))
3978

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spotless {
2222
}
2323
format 'dotfiles', {
2424
target '.gitignore', '.gitattributes', '.editorconfig'
25-
indentWithSpaces(2)
25+
leadingTabsToSpaces(2)
2626
trimTrailingWhitespace()
2727
endWithNewline()
2828
}

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ VER_SLF4J=[1.6,2.0[
2828

2929
# Used in multiple places
3030
VER_DURIAN=1.2.0
31-
VER_JGIT=6.10.0.202406032230-r
32-
VER_JUNIT=5.11.3
33-
VER_ASSERTJ=3.26.3
34-
VER_MOCKITO=5.14.2
35-
VER_SELFIE=2.4.1
31+
VER_JGIT=6.10.1.202505221210-r
32+
VER_JUNIT=5.13.1
33+
VER_ASSERTJ=3.27.3
34+
VER_MOCKITO=5.18.0
35+
VER_SELFIE=2.5.3

gradle/changelog.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ spotlessChangelog {
2424
commitMessage "Published ${kind}/{{version}}" // {{version}} will be replaced
2525
tagMessage "{{changes}}"
2626
runAfterPush "gh release create ${kind}/{{version}} --title '${releaseTitle} v{{version}}' --notes-from-tag"
27-
28-
if (kind == 'gradle') {
29-
forceNextVersion '7.0.0.BETA4'
30-
} else if (kind == 'maven') {
31-
forceNextVersion '2.44.0.BETA4'
32-
} else {
33-
forceNextVersion '3.0.0.BETA4'
34-
}
3527
}
3628

3729
if (project == rootProject) {

gradle/java-publish.gradle

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,22 @@ model {
107107
artifactId project.ext.artifactId
108108
version project.version
109109

110+
def projectExtArtifactId = project.ext.artifactId
111+
def projectDescription = project.description
112+
def projectOrg = project.org
113+
def rootProjectName = rootProject.name
114+
110115
pom.withXml {
111116
// add MavenCentral requirements to the POM
112117
asNode().children().last() + {
113118
resolveStrategy = Closure.DELEGATE_FIRST
114-
name project.ext.artifactId
115-
description project.description
116-
url "https://github.com/${project.org}/${rootProject.name}"
119+
name projectExtArtifactId
120+
description projectDescription
121+
url "https://github.com/${projectOrg}/${rootProjectName}"
117122
scm {
118-
url "https://github.com/${project.org}/${rootProject.name}"
119-
connection "scm:git:https://github.com/${project.org}/${rootProject.name}.git"
120-
developerConnection "scm:git:ssh:[email protected]/${project.org}/${rootProject.name}.git"
123+
url "https://github.com/${projectOrg}/${rootProjectName}"
124+
connection "scm:git:https://github.com/${projectOrg}/${rootProjectName}.git"
125+
developerConnection "scm:git:ssh:[email protected]/${projectOrg}/${rootProjectName}.git"
121126
}
122127
licenses {
123128
if (isExt) {
@@ -176,7 +181,7 @@ if (System.env['JITPACK'] == 'true' || version.endsWith('-SNAPSHOT')) {
176181
} else {
177182
signing {
178183
String gpg_key = decode64('ORG_GRADLE_PROJECT_gpg_key64')
179-
useInMemoryPgpKeys(gpg_key, System.env['ORG_GRADLE_PROJECT_gpg_passphrase'])
184+
useInMemoryPgpKeys('0x4272C851', gpg_key, System.env['ORG_GRADLE_PROJECT_gpg_passphrase'])
180185
sign(publishing.publications)
181186
}
182187

0 commit comments

Comments
 (0)