Skip to content

Commit

Permalink
#95 Marking Maven plug-in goals with @threadsafe
Browse files Browse the repository at this point in the history
Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
  • Loading branch information
jfallows and gunnarmorling committed Feb 12, 2024
1 parent e096f8e commit e66d794
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -71,7 +71,7 @@
/**
* @author Gunnar Morling
*/
@Mojo(name = "add-module-info", defaultPhase = LifecyclePhase.PROCESS_RESOURCES, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
@Mojo(name = "add-module-info", defaultPhase = LifecyclePhase.PROCESS_RESOURCES, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, threadSafe = true)
public class AddModuleInfoMojo extends AbstractMojo {

private static final String MODULE_INFO_CLASS = "module-info.class";
Expand Down
Expand Up @@ -43,7 +43,7 @@
/**
* @author Gunnar Morling
*/
@Mojo(name = "generate-module-info", defaultPhase = LifecyclePhase.GENERATE_SOURCES)
@Mojo(name = "generate-module-info", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
public class GenerateModuleInfoMojo extends AbstractMojo {

@Component
Expand Down
Expand Up @@ -47,7 +47,7 @@
/**
* @author Gunnar Morling
*/
@Mojo(name = "create-runtime-image", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
@Mojo(name = "create-runtime-image", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, threadSafe = true)
public class CreateRuntimeImageMojo extends AbstractMojo {

@Parameter(defaultValue = "${project}", readonly = true)
Expand Down
Expand Up @@ -29,7 +29,7 @@
import org.moditect.mavenplugin.util.MojoLog;
import org.moditect.model.Version;

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

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

0 comments on commit e66d794

Please sign in to comment.