Skip to content

Commit 4ac74e1

Browse files
authored
feat: support pass skip from command-line for maven-plugin (#1729)
2 parents b124927 + 6a1eb5f commit 4ac74e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugin-maven/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Added
7+
* Support pass skip (`-Dspotless.skip=true`) from command-line. ([#1729](https://github.com/diffplug/spotless/pull/1729))
68

79
## [2.37.0] - 2023-05-24
810
### Added

plugin-maven/src/main/java/com/diffplug/spotless/maven/AbstractSpotlessMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public abstract class AbstractSpotlessMojo extends AbstractMojo {
100100
@Parameter(defaultValue = "${mojoExecution.goal}", required = true, readonly = true)
101101
private String goal;
102102

103-
@Parameter(defaultValue = "false")
103+
@Parameter(property = "spotless.skip", defaultValue = "false")
104104
private boolean skip;
105105

106106
@Parameter(property = "spotless.apply.skip", defaultValue = "false")

0 commit comments

Comments
 (0)