Skip to content

Commit 4028226

Browse files
committed
Fix 'spring-javaformat.apply.skip' property and use info logging
The `spring-javaformat.format.skip` should have been `spring-javaformat.apply.skip` and logging that skip has occurred is better at 'INFO' level. Fixes gh-365
1 parent 681e845 commit 4028226

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-javaformat-maven/spring-javaformat-maven-plugin/src/main/java/io/spring/format/maven/ApplyMojo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public class ApplyMojo extends FormatMojo {
4040
/**
4141
* Skip the execution.
4242
*/
43-
@Parameter(property = "spring-javaformat.format.skip", defaultValue = "false")
43+
@Parameter(property = "spring-javaformat.apply.skip", defaultValue = "false")
4444
private boolean skip;
4545

4646
@Override
4747
protected void execute(List<File> files, Charset encoding, String lineSeparator)
4848
throws MojoExecutionException, MojoFailureException {
4949
if (this.skip || skipGlobally()) {
50-
getLog().debug("skipping format apply as per configuration.");
50+
getLog().info("skipping format apply as per configuration.");
5151
return;
5252
}
5353
try {

spring-javaformat-maven/spring-javaformat-maven-plugin/src/main/java/io/spring/format/maven/ValidateMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class ValidateMojo extends FormatMojo {
4747
protected void execute(List<File> files, Charset encoding, String lineSeparator)
4848
throws MojoExecutionException, MojoFailureException {
4949
if (this.skip || skipGlobally()) {
50-
getLog().debug("skipping format validate as per configuration.");
50+
getLog().info("skipping format validate as per configuration.");
5151
return;
5252
}
5353
List<File> problems = getFormatter().formatFiles(files, encoding, lineSeparator)

0 commit comments

Comments
 (0)