Skip to content

Commit e66d794

Browse files
#95 Marking Maven plug-in goals with @threadsafe
Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
1 parent e096f8e commit e66d794

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

maven-plugin/src/main/java/org/moditect/mavenplugin/add/AddModuleInfoMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
/**
7272
* @author Gunnar Morling
7373
*/
74-
@Mojo(name = "add-module-info", defaultPhase = LifecyclePhase.PROCESS_RESOURCES, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
74+
@Mojo(name = "add-module-info", defaultPhase = LifecyclePhase.PROCESS_RESOURCES, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, threadSafe = true)
7575
public class AddModuleInfoMojo extends AbstractMojo {
7676

7777
private static final String MODULE_INFO_CLASS = "module-info.class";

maven-plugin/src/main/java/org/moditect/mavenplugin/generate/GenerateModuleInfoMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/**
4444
* @author Gunnar Morling
4545
*/
46-
@Mojo(name = "generate-module-info", defaultPhase = LifecyclePhase.GENERATE_SOURCES)
46+
@Mojo(name = "generate-module-info", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
4747
public class GenerateModuleInfoMojo extends AbstractMojo {
4848

4949
@Component

maven-plugin/src/main/java/org/moditect/mavenplugin/image/CreateRuntimeImageMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
/**
4848
* @author Gunnar Morling
4949
*/
50-
@Mojo(name = "create-runtime-image", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
50+
@Mojo(name = "create-runtime-image", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, threadSafe = true)
5151
public class CreateRuntimeImageMojo extends AbstractMojo {
5252

5353
@Parameter(defaultValue = "${project}", readonly = true)

maven-plugin/src/main/java/org/moditect/mavenplugin/modulelist/GenerateModuleListMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.moditect.mavenplugin.util.MojoLog;
3030
import org.moditect.model.Version;
3131

32-
@Mojo(name = "list-application-image-modules", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
32+
@Mojo(name = "list-application-image-modules", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, threadSafe = true)
3333
public class GenerateModuleListMojo extends AbstractMojo {
3434

3535
@Parameter(defaultValue = "${project}", readonly = true)

0 commit comments

Comments
 (0)