You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugin-maven/CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
6
6
### Fixed
7
7
- Concurrent P2 provisioning no longer races Solstice's on-disk cache (affects Eclipse-based formatters under parallel builds). ([#3004](https://github.com/diffplug/spotless/issues/3004))
8
8
### Changes
9
+
- Document Maven skip properties `spotless.skip`, `spotless.check.skip`, and `spotless.apply.skip`. Goal-specific skips now live on their own mojos so they no longer leak across goals. ([#3009](https://github.com/diffplug/spotless/pull/3009))
9
10
- Bump default `adocfmt` version `0.2.0` -> `0.3.1`, which adds table formatting support (`<formatTables>`, `<tableLayout>`, `<tableMaxLineWidth>`, `<tableBlankLines>`).
10
11
- Add support to apply alternate license header within same format ([#872](https://github.com/diffplug/spotless/issues/872))
11
12
- Add support to skip license header application based on source file content pattern ([#650](https://github.com/diffplug/spotless/issues/650)).
Copy file name to clipboardExpand all lines: plugin-maven/README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2104,12 +2104,23 @@ You can easily set the line endings of different files using [a `.gitattributes`
2104
2104
2105
2105
<aname="enforceCheck"></a>
2106
2106
2107
-
## Disabling warnings and error messages
2107
+
## Disabling Spotless goals
2108
2108
2109
-
By default, `spotless:check` is bound to the `verify` phase. You might want to disable this behavior. We [recommend against this](https://github.com/diffplug/spotless/issues/79#issuecomment-290844602), but it's easy to do if you'd like:
2109
+
By default, `spotless:check` is bound to the `verify` phase. You might want to disable Spotless for some builds. We [recommend against this](https://github.com/diffplug/spotless/issues/79#issuecomment-290844602), but the following properties are available:
2110
2110
2111
-
- set `-Dspotless.check.skip=true` at the command line
2112
-
- set `spotless.check.skip` to `true` in the `<properties>` section of the `pom.xml`
2111
+
| Property | Scope | Effect |
2112
+
| --- | --- | --- |
2113
+
|`spotless.skip`|`spotless:check` and `spotless:apply`| Skips both formatting goals |
2114
+
|`spotless.check.skip`|`spotless:check` only | Skips only the check goal |
2115
+
|`spotless.apply.skip`|`spotless:apply` only | Skips only the apply goal |
2116
+
2117
+
You can set them at the command line or in the `<properties>` section of the `pom.xml`:
2118
+
2119
+
-`-Dspotless.skip=true` / `<spotless.skip>true</spotless.skip>` — skip both `spotless:check` and `spotless:apply`
2120
+
-`-Dspotless.check.skip=true` / `<spotless.check.skip>true</spotless.check.skip>` — skip only `spotless:check` (including when it is bound to `verify`)
2121
+
-`-Dspotless.apply.skip=true` / `<spotless.apply.skip>true</spotless.apply.skip>` — skip only `spotless:apply`
2122
+
2123
+
`spotless.check.skip` does **not** skip `spotless:apply`, and `spotless.apply.skip` does **not** skip `spotless:check`. Use `spotless.skip` when you want both. These properties do **not** affect `spotless:install-git-pre-push-hook`.
0 commit comments