Skip to content

Commit

Permalink
feat: support pass skip from command-line for maven-plugin (#1729)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Jun 6, 2023
2 parents b124927 + 6a1eb5f commit 4ac74e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugin-maven/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).

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

## [2.37.0] - 2023-05-24
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public abstract class AbstractSpotlessMojo extends AbstractMojo {
@Parameter(defaultValue = "${mojoExecution.goal}", required = true, readonly = true)
private String goal;

@Parameter(defaultValue = "false")
@Parameter(property = "spotless.skip", defaultValue = "false")
private boolean skip;

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

0 comments on commit 4ac74e1

Please sign in to comment.