From 9f838184ad28a72b4ca55d50af8504c17bf21e60 Mon Sep 17 00:00:00 2001 From: Sumit Kumar Date: Sun, 14 May 2023 08:00:52 -0700 Subject: [PATCH] Mark FormatMojo as threadSafe because it is thread-safe (#216) This will help avoid warning messages like one reported in #215 --- src/main/java/org/antipathy/mvn_scalafmt/FormatMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/antipathy/mvn_scalafmt/FormatMojo.java b/src/main/java/org/antipathy/mvn_scalafmt/FormatMojo.java index ac66334..a692dbd 100644 --- a/src/main/java/org/antipathy/mvn_scalafmt/FormatMojo.java +++ b/src/main/java/org/antipathy/mvn_scalafmt/FormatMojo.java @@ -16,7 +16,7 @@ /** * Get the location of the config file and pass to Formatter */ -@Mojo(name = "format", defaultPhase = LifecyclePhase.VALIDATE) +@Mojo(name = "format", defaultPhase = LifecyclePhase.VALIDATE, threadSafe = true) public class FormatMojo extends AbstractMojo { @Parameter(property = "format.configLocation")