Skip to content

Commit 8dfc370

Browse files
committed
Mark all mojos threadsafe.
1 parent 62ae37b commit 8dfc370

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

src/main/java/org/codehaus/mojo/license/AddThirdPartyMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*/
6868
// CHECKSTYLE_ON: LineLength
6969
@Mojo( name = "add-third-party", requiresDependencyResolution = ResolutionScope.TEST,
70-
defaultPhase = LifecyclePhase.GENERATE_RESOURCES )
70+
defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true )
7171
public class AddThirdPartyMojo extends AbstractAddThirdPartyMojo implements MavenProjectDependenciesConfigurator
7272
{
7373
private static final Logger LOG = LoggerFactory.getLogger( AddThirdPartyMojo.class );

src/main/java/org/codehaus/mojo/license/AggregatorThirdPartyReportMojo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
* @author Tony Chemit - [email protected]
5050
* @since 1.10
5151
*/
52-
@Mojo( name = "aggregate-third-party-report", aggregator = true, requiresDependencyResolution = ResolutionScope.TEST )
52+
@Mojo( name = "aggregate-third-party-report", aggregator = true,
53+
requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true )
5354
public class AggregatorThirdPartyReportMojo
5455
extends AbstractThirdPartyReportMojo
5556
{

src/main/java/org/codehaus/mojo/license/CommentStyleListMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* @author tchemit [email protected]
4444
* @since 1.0
4545
*/
46-
@Mojo( name = "comment-style-list", requiresProject = false, requiresDirectInvocation = true )
46+
@Mojo( name = "comment-style-list", requiresProject = false, requiresDirectInvocation = true, threadSafe = true )
4747
public class CommentStyleListMojo
4848
extends AbstractLicenseMojo
4949
{

src/main/java/org/codehaus/mojo/license/DownloadLicensesMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @since 1.0
5454
*/
5555
@Mojo( name = "download-licenses", requiresDependencyResolution = ResolutionScope.TEST,
56-
defaultPhase = LifecyclePhase.PACKAGE )
56+
defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true )
5757
public class DownloadLicensesMojo
5858
extends AbstractDownloadLicensesMojo
5959
{

src/main/java/org/codehaus/mojo/license/LicenseListMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @author tchemit [email protected]
4343
* @since 1.0
4444
*/
45-
@Mojo( name = "license-list", requiresProject = false, requiresDirectInvocation = true )
45+
@Mojo( name = "license-list", requiresProject = false, requiresDirectInvocation = true, threadSafe = true )
4646
public class LicenseListMojo
4747
extends AbstractLicenseMojo
4848
{

src/main/java/org/codehaus/mojo/license/LicensesXmlInsertVersionsMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @since 1.19
5353
*/
5454
@Mojo( name = "licenses-xml-insert-versions", requiresDependencyResolution = ResolutionScope.TEST,
55-
defaultPhase = LifecyclePhase.PACKAGE )
55+
defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true )
5656
public class LicensesXmlInsertVersionsMojo
5757
extends AbstractLicensesXmlMojo
5858
{

src/main/java/org/codehaus/mojo/license/ThirdPartyReportMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @author tchemit [email protected]
4242
* @since 1.1
4343
*/
44-
@Mojo( name = "third-party-report", requiresDependencyResolution = ResolutionScope.TEST )
44+
@Mojo( name = "third-party-report", requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true )
4545
public class ThirdPartyReportMojo extends AbstractThirdPartyReportMojo
4646
{
4747

src/main/java/org/codehaus/mojo/license/UpdateProjectLicenseMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* @author tchemit [email protected]
4444
* @since 1.0
4545
*/
46-
@Mojo( name = "update-project-license", defaultPhase = LifecyclePhase.GENERATE_RESOURCES )
46+
@Mojo( name = "update-project-license", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true )
4747
public class UpdateProjectLicenseMojo
4848
extends AbstractLicenseNameMojo
4949
{

0 commit comments

Comments
 (0)