Skip to content

Commit 9798251

Browse files
author
Ned Twigg
committed
Merge branch 'main' into feature/eclipse-config-without-file-xml
2 parents f9c14d8 + af40183 commit 9798251

File tree

127 files changed

+3665
-461
lines changed

Some content is hidden

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

127 files changed

+3665
-461
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
matrix:
4242
kind: [maven, gradle]
4343
# Test on the latest Java version once Gradle & Maven support it.
44-
jre: [11, 17, 21, 23]
44+
jre: [11, 17, 21, 24]
4545
os: [ubuntu-latest]
4646
include:
4747
# test windows at the diagonals of the above matrix
@@ -59,6 +59,9 @@ jobs:
5959
jre: 11
6060
os: ubuntu-latest
6161
shfmt-version: v3.8.0
62+
- kind: idea
63+
jre: 11
64+
os: ubuntu-latest
6265
runs-on: ${{ matrix.os }}
6366
steps:
6467
- name: Checkout
@@ -91,6 +94,16 @@ jobs:
9194
- name: Test shfmt
9295
if: matrix.kind == 'shfmt'
9396
run: ./gradlew testShfmt
97+
- name: Test idea
98+
if: matrix.kind == 'idea'
99+
run: |
100+
download_link=$(curl https://data.services.jetbrains.com/products/releases\?code\=IIC\&latest\=true\&type\=release | jq -r '.IIC[0].downloads.linux.link')
101+
curl --location "$download_link" -o idea.tar.gz
102+
tar -xf idea.tar.gz
103+
cd idea-IC*
104+
export PATH=${PATH}:$(pwd)/bin
105+
cd ..
106+
./gradlew testIdea
94107
- name: junit result
95108
uses: mikepenz/action-junit-report@v5
96109
if: always() # always run even if the previous step fails

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Project-specific stuff
88
userHome/
99
workspace/
10+
testenv.properties
1011

1112
### Gradle ###
1213
.gradle
@@ -67,6 +68,7 @@ local.properties
6768

6869
## Directory-based project format:
6970
.idea/
71+
!.idea/icon.png
7072
# if you remove the above rule, at least ignore the following:
7173

7274
# User-specific stuff:

.idea/icon.png

1.6 KB
Loading

.idea/vcs.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGES.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,42 @@ 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+
### Added
14+
* Allow specifying path to Biome JSON config file directly in `biome` step. Requires biome 2.x. ([#2548](https://github.com/diffplug/spotless/pull/2548))
15+
- `GitPrePushHookInstaller`, a reusable library component for installing a Git `pre-push` hook that runs formatter checks.
16+
17+
## Changed
18+
* Bump default `gson` version to latest `2.11.0` -> `2.13.1`. ([#2414](https://github.com/diffplug/spotless/pull/2414))
19+
* Bump default `jackson` version to latest `2.18.1` -> `2.19.2`. ([#2558](https://github.com/diffplug/spotless/pull/2558))
20+
* Bump default `gherkin-utils` version to latest `9.0.0` -> `9.2.0`. ([#2408](https://github.com/diffplug/spotless/pull/2408))
21+
* Bump default `cleanthat` version to latest `2.22` -> `2.23`. ([#2556](https://github.com/diffplug/spotless/pull/2556))
22+
23+
## [3.2.0] - 2025-07-07
24+
### Added
25+
* Support for `idea` ([#2020](https://github.com/diffplug/spotless/pull/2020), [#2535](https://github.com/diffplug/spotless/pull/2535))
26+
* Add support for removing wildcard imports via `removeWildcardImports` step. ([#2517](https://github.com/diffplug/spotless/pull/2517))
27+
* scalafmt: enforce version consistency between the version configured in Spotless and the version declared in Scalafmt config file ([#2460](https://github.com/diffplug/spotless/issues/2460))
28+
### Fixed
29+
* `SortPom` disable expandEmptyElements, to avoid empty body warnings. ([#2520](https://github.com/diffplug/spotless/pull/2520))
30+
* Fix biome formatter for new major release 2.x of biome ([#2537](https://github.com/diffplug/spotless/pull/2537))
31+
* Make sure npm-based formatters use the correct `node_modules` directory when running in parallel. ([#2542](https://github.com/diffplug/spotless/pull/2542))
32+
### Changed
33+
* Bump internal dependencies for npm-based formatters ([#2542](https://github.com/diffplug/spotless/pull/2542))
34+
35+
## [3.1.2] - 2025-05-27
36+
### Fixed
37+
* Fix `UnsupportedOperationException` in the Gradle plugin when using `targetExcludeContent[Pattern]` ([#2487](https://github.com/diffplug/spotless/pull/2487))
38+
* pgp key had expired, this and future releases will be signed by new key ([details](https://github.com/diffplug/spotless/discussions/2464))
39+
### Changed
40+
* Bump default `eclipse` version to latest `4.34` -> `4.35`. ([#2458](https://github.com/diffplug/spotless/pull/2458))
41+
* Bump default `greclipse` version to latest `4.32` -> `4.35`. ([#2458](https://github.com/diffplug/spotless/pull/2458))
42+
43+
## [3.1.1] - 2025-04-07
1344
### Changed
1445
* Allow setting Eclipse XML config from a string, not only from files ([#2361](https://github.com/diffplug/spotless/pull/2361))
1546
* Use palantir-java-format 2.57.0 on Java 21. ([#2447](https://github.com/diffplug/spotless/pull/2447))
1647
* Re-try `npm install` with `--prefer-online` after `ERESOLVE` error. ([#2448](https://github.com/diffplug/spotless/pull/2448))
48+
* 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))
1749

1850
## [3.1.0] - 2025-02-20
1951
### Added
@@ -397,8 +429,6 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
397429
## [2.26.0] - 2022-06-05
398430
### Added
399431
* Support for `editorConfigOverride` in `ktlint`. ([#1218](https://github.com/diffplug/spotless/pull/1218) fixes [#1193](https://github.com/diffplug/spotless/issues/1193))
400-
### Fixed
401-
* `google-java-format` and `RemoveUnusedImportsStep` works on JDK16+ without jvm args workaround. ([#1224](https://github.com/diffplug/spotless/pull/1224) fixes [#834](https://github.com/diffplug/spotless/issues/834))
402432

403433
## [2.25.3] - 2022-05-10
404434
### Fixed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ If you get something running, we'd love to host your plugin within this repo as
163163

164164
To run all tests, simply do
165165

166-
> gradlew test
166+
> ./gradlew test
167167
168168
Since that takes some time, you might only want to run the tests
169169
concerning what you are working on:

INTELLIJ_IDEA_SCREENSHOTS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Extracting Code Style from IntelliJ IDEA
2+
3+
## 1. Exporting Code Style Settings to a file
4+
To export code style settings from IntelliJ IDEA to a file, go to
5+
`Settings | Editor | Code Style` and click on the gear icon next to the scheme name.
6+
7+
![Exporting code style settings](_images/intellij_export_codestyle.png)
8+
9+
## 2. Using IntelliJ's active code style directly
10+
If you have your code style settings checked into version control (in your `.idea` directory),
11+
you can use the active code style directly in Spotless without exporting it to a file.
12+
The file can be found at `.idea/codeStyles/Project.xml`.
13+
14+
## Upstream documentation
15+
More details can be found in the [IntelliJ IDEA documentation](https://www.jetbrains.com/help/idea/command-line-formatter.html#options)
16+
for the command line formatter, which is what Spotless uses under the hood.

_images/intellij_export_codestyle.png

131 KB
Loading

gradle.properties

Lines changed: 4 additions & 4 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.12.1
31+
VER_JGIT=6.10.1.202505221210-r
32+
VER_JUNIT=5.13.3
3333
VER_ASSERTJ=3.27.3
34-
VER_MOCKITO=5.16.1
35-
VER_SELFIE=2.4.2
34+
VER_MOCKITO=5.18.0
35+
VER_SELFIE=2.5.3

gradle/java-publish.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ if (project.parent == null) {
2020
nexusPublishing {
2121
repositories {
2222
sonatype {
23-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
24-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
23+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
24+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
2525
username = System.env['ORG_GRADLE_PROJECT_nexus_user']
2626
password = decode64('ORG_GRADLE_PROJECT_nexus_pass64')
2727
}
@@ -181,7 +181,7 @@ if (System.env['JITPACK'] == 'true' || version.endsWith('-SNAPSHOT')) {
181181
} else {
182182
signing {
183183
String gpg_key = decode64('ORG_GRADLE_PROJECT_gpg_key64')
184-
useInMemoryPgpKeys(gpg_key, System.env['ORG_GRADLE_PROJECT_gpg_passphrase'])
184+
useInMemoryPgpKeys('0x4272C851', gpg_key, System.env['ORG_GRADLE_PROJECT_gpg_passphrase'])
185185
sign(publishing.publications)
186186
}
187187

0 commit comments

Comments
 (0)