Skip to content

Commit ee24ef9

Browse files
committed
Merge remote-tracking branch 'origin/main' into feature/eclipse-config-without-file-xml
2 parents 45420dc + 822b52d commit ee24ef9

File tree

52 files changed

+827
-275
lines changed

Some content is hidden

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

52 files changed

+827
-275
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.

CHANGES.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,42 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1212
## [Unreleased]
1313
### Changed
1414
* Allow setting Eclipse XML config from a string, not only from files ([#2361](https://github.com/diffplug/spotless/pull/2361))
15+
* Use palantir-java-format 2.57.0 on Java 21. ([#2447](https://github.com/diffplug/spotless/pull/2447))
16+
* Re-try `npm install` with `--prefer-online` after `ERESOLVE` error. ([#2448](https://github.com/diffplug/spotless/pull/2448))
17+
18+
## [3.1.0] - 2025-02-20
19+
### Added
20+
* Support for`clang-format` on maven-plugin ([#2406](https://github.com/diffplug/spotless/pull/2406))
21+
* Allow overriding classLoader for all `JarState`s to enable spotless-cli ([#2427](https://github.com/diffplug/spotless/pull/2427))
22+
23+
## [3.0.2] - 2025-01-14
24+
### Fixed
25+
* Node.JS-based tasks now work with the configuration cache ([#2372](https://github.com/diffplug/spotless/issues/2372))
26+
* Eclipse-based tasks can now handle parallel configuration ([#2389](https://github.com/diffplug/spotless/issues/2389))
27+
28+
## [3.0.1] - 2025-01-07
29+
### Fixed
30+
* Deployment was missing part of the CDT formatter, now fixed. ([#2384](https://github.com/diffplug/spotless/issues/2384))
31+
32+
## [3.0.0] - 2025-01-06
33+
## Headline changes
34+
* All steps now support roundtrip serialization (end of [#987](https://github.com/diffplug/spotless/issues/987)).
35+
* Spotless now supports [linting](https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md#lints) in addition to formatting.
36+
### Changed
1537
* Allow setting Eclipse config from a string, not only from files ([#2337](https://github.com/diffplug/spotless/pull/2337))
1638
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
1739
* Add _Sort Members_ feature based on [Eclipse JDT](plugin-gradle/README.md#eclipse-jdt) implementation. ([#2312](https://github.com/diffplug/spotless/pull/2312))
1840
* Bump default `jackson` version to latest `2.18.0` -> `2.18.1`. ([#2319](https://github.com/diffplug/spotless/pull/2319))
1941
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320))
2042
* Bump default `ktlint` version to latest `1.4.0` -> `1.5.0`. ([#2354](https://github.com/diffplug/spotless/pull/2354))
43+
* Bump minimum `eclipse-cdt` version to `11.0` (removed support for `10.7`). ([#2373](https://github.com/diffplug/spotless/pull/2373))
44+
* Bump default `eclipse` version to latest `4.32` -> `4.34`. ([#2381](https://github.com/diffplug/spotless/pull/2381))
45+
2146
### Fixed
2247
* You can now use `removeUnusedImports` and `googleJavaFormat` at the same time again. (fixes [#2159](https://github.com/diffplug/spotless/issues/2159))
2348
* 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))
2449

50+
2551
## [3.0.0.BETA4] - 2024-10-24
2652
### Added
2753
* 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))
@@ -33,6 +59,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
3359
### Changed
3460
* **BREAKING** Moved `PaddedCell.DirtyState` to its own top-level class with new methods. ([#2148](https://github.com/diffplug/spotless/pull/2148))
3561
* **BREAKING** Removed `isClean`, `applyTo`, and `applyToAndReturnResultIfDirty` from `Formatter` because users should instead use `DirtyState`.
62+
* `FenceStep` now uses `ConfigurationCacheHack`. ([#2378](https://github.com/diffplug/spotless/pull/2378) fixes [#2317](https://github.com/diffplug/spotless/issues/2317))
3663
### Fixed
3764
* `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))
3865

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ VER_SLF4J=[1.6,2.0[
2929
# Used in multiple places
3030
VER_DURIAN=1.2.0
3131
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
32+
VER_JUNIT=5.12.1
33+
VER_ASSERTJ=3.27.3
34+
VER_MOCKITO=5.16.1
35+
VER_SELFIE=2.4.2

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: 11 additions & 6 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) {

gradle/spotless-freshmark.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Action<FreshMarkExtension> freshmarkSetup = {
1010
it.put('yes', ':+1:')
1111
it.put('no', ':white_large_square:')
1212
}
13-
it.indentWithSpaces(2)
13+
it.leadingTabsToSpaces(2)
1414
it.endWithNewline()
1515
}
1616

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)