Skip to content

Commit

Permalink
Mark all mojos threadsafe.
Browse files Browse the repository at this point in the history
  • Loading branch information
timw committed May 12, 2023
1 parent 62ae37b commit 8dfc370
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
Expand Up @@ -67,7 +67,7 @@
*/
// CHECKSTYLE_ON: LineLength
@Mojo( name = "add-third-party", requiresDependencyResolution = ResolutionScope.TEST,
defaultPhase = LifecyclePhase.GENERATE_RESOURCES )
defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true )
public class AddThirdPartyMojo extends AbstractAddThirdPartyMojo implements MavenProjectDependenciesConfigurator
{
private static final Logger LOG = LoggerFactory.getLogger( AddThirdPartyMojo.class );
Expand Down
Expand Up @@ -49,7 +49,8 @@
* @author Tony Chemit - dev@tchemit.fr
* @since 1.10
*/
@Mojo( name = "aggregate-third-party-report", aggregator = true, requiresDependencyResolution = ResolutionScope.TEST )
@Mojo( name = "aggregate-third-party-report", aggregator = true,
requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true )
public class AggregatorThirdPartyReportMojo
extends AbstractThirdPartyReportMojo
{
Expand Down
Expand Up @@ -43,7 +43,7 @@
* @author tchemit dev@tchemit.fr
* @since 1.0
*/
@Mojo( name = "comment-style-list", requiresProject = false, requiresDirectInvocation = true )
@Mojo( name = "comment-style-list", requiresProject = false, requiresDirectInvocation = true, threadSafe = true )
public class CommentStyleListMojo
extends AbstractLicenseMojo
{
Expand Down
Expand Up @@ -53,7 +53,7 @@
* @since 1.0
*/
@Mojo( name = "download-licenses", requiresDependencyResolution = ResolutionScope.TEST,
defaultPhase = LifecyclePhase.PACKAGE )
defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true )
public class DownloadLicensesMojo
extends AbstractDownloadLicensesMojo
{
Expand Down
Expand Up @@ -42,7 +42,7 @@
* @author tchemit dev@tchemit.fr
* @since 1.0
*/
@Mojo( name = "license-list", requiresProject = false, requiresDirectInvocation = true )
@Mojo( name = "license-list", requiresProject = false, requiresDirectInvocation = true, threadSafe = true )
public class LicenseListMojo
extends AbstractLicenseMojo
{
Expand Down
Expand Up @@ -52,7 +52,7 @@
* @since 1.19
*/
@Mojo( name = "licenses-xml-insert-versions", requiresDependencyResolution = ResolutionScope.TEST,
defaultPhase = LifecyclePhase.PACKAGE )
defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true )
public class LicensesXmlInsertVersionsMojo
extends AbstractLicensesXmlMojo
{
Expand Down
Expand Up @@ -41,7 +41,7 @@
* @author tchemit dev@tchemit.fr
* @since 1.1
*/
@Mojo( name = "third-party-report", requiresDependencyResolution = ResolutionScope.TEST )
@Mojo( name = "third-party-report", requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true )
public class ThirdPartyReportMojo extends AbstractThirdPartyReportMojo
{

Expand Down
Expand Up @@ -43,7 +43,7 @@
* @author tchemit dev@tchemit.fr
* @since 1.0
*/
@Mojo( name = "update-project-license", defaultPhase = LifecyclePhase.GENERATE_RESOURCES )
@Mojo( name = "update-project-license", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true )
public class UpdateProjectLicenseMojo
extends AbstractLicenseNameMojo
{
Expand Down

0 comments on commit 8dfc370

Please sign in to comment.