Skip to content

Commit f57fa92

Browse files
committed
Indicate that Mojos are thread safe
Closes gh-132
1 parent 68271a6 commit f57fa92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* @author Phillip Webb
3636
*/
37-
@Mojo(name = "apply", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
37+
@Mojo(name = "apply", defaultPhase = LifecyclePhase.PROCESS_SOURCES, threadSafe = true)
3838
public class ApplyMojo extends FormatMojo {
3939

4040
@Override

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
@@ -35,7 +35,7 @@
3535
*
3636
* @author Phillip Webb
3737
*/
38-
@Mojo(name = "validate", defaultPhase = LifecyclePhase.VALIDATE)
38+
@Mojo(name = "validate", defaultPhase = LifecyclePhase.VALIDATE, threadSafe = true)
3939
public class ValidateMojo extends FormatMojo {
4040

4141
/**

0 commit comments

Comments
 (0)