Skip to content

Commit

Permalink
(doc) remove unused and deprecated Mojo annotation requiresProject. A…
Browse files Browse the repository at this point in the history
…lso requiresProject = true is default
  • Loading branch information
slachiewicz committed Sep 18, 2022
1 parent a54e87f commit 9d9991e
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/mojo/versions/CommitMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "commit", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "commit", threadSafe = true )
public class CommitMojo
extends AbstractMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* @author Paul Gier
* @since 1.3
*/
@Mojo( name = "compare-dependencies", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "compare-dependencies", threadSafe = true )
public class CompareDependenciesMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-1
*/
@Mojo( name = "display-dependency-updates", requiresProject = true, requiresDirectInvocation = false,
threadSafe = true )
@Mojo( name = "display-dependency-updates", threadSafe = true )
public class DisplayDependencyUpdatesMojo
extends AbstractVersionsDisplayMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @author Stephen Connolly
* @since 2.2
*/
@Mojo( name = "display-parent-updates", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "display-parent-updates", threadSafe = true )
public class DisplayParentUpdatesMojo
extends AbstractVersionsDisplayMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-1
*/
@Mojo( name = "display-plugin-updates", requiresProject = true, requiresDirectInvocation = false, threadSafe = true )
@Mojo( name = "display-plugin-updates", threadSafe = true )
public class DisplayPluginUpdatesMojo
extends AbstractVersionsDisplayMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @author Stephen Connolly
* @since 1.0-beta-1
*/
@Mojo( name = "display-property-updates", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "display-property-updates", threadSafe = true )
public class DisplayPropertyUpdatesMojo
extends AbstractVersionsDisplayMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @author Stephen Connolly
* @since 2.2
*/
@Mojo( name = "force-releases", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "force-releases", threadSafe = true )
public class ForceReleasesMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @author Paul Gier
* @since 1.0-alpha-3
*/
@Mojo( name = "lock-snapshots", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "lock-snapshots", threadSafe = true )
public class LockSnapshotsMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @author Stephen Connolly
* @since 1.0-beta-1
*/
@Mojo( name = "property-updates-report", requiresProject = true, requiresDependencyResolution = ResolutionScope.RUNTIME,
@Mojo( name = "property-updates-report", requiresDependencyResolution = ResolutionScope.RUNTIME,
threadSafe = true )
public class PropertyUpdatesReport
extends AbstractVersionsReport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* @author Paul Gier
* @since 1.0-alpha-3
*/
@Mojo( name = "resolve-ranges", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "resolve-ranges", threadSafe = true )
public class ResolveRangesMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/mojo/versions/RevertMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "revert", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "revert", threadSafe = true )
public class RevertMojo
extends AbstractMojo
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/mojo/versions/SetMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
* @author Stephen Connolly
* @since 1.0-beta-1
*/
@Mojo( name = "set", requiresProject = true, requiresDirectInvocation = true, aggregator = true, threadSafe = true )
@Mojo( name = "set", aggregator = true, threadSafe = true )
public class SetMojo extends AbstractVersionsUpdaterMojo
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* @author Karl Heinz Marbaise
* @since 2.5
*/
@Mojo( name = "set-property", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "set-property", threadSafe = true )
public class SetPropertyMojo
extends AbstractVersionsUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @author Anton Johansson
* @since 2.5
*/
@Mojo( name = "set-scm-tag", requiresDirectInvocation = true, aggregator = true, threadSafe = true )
@Mojo( name = "set-scm-tag", aggregator = true, threadSafe = true )
public class SetScmTagMojo extends AbstractVersionsUpdaterMojo
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@
* @author Paul Gier
* @since 1.0-alpha-3
*/
@Mojo( name = "unlock-snapshots",
requiresProject = true,
requiresDirectInvocation = true,
threadSafe = true )
@Mojo( name = "unlock-snapshots", threadSafe = true )
public class UnlockSnapshotsMojo extends AbstractVersionsDependencyUpdaterMojo
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-2
*/
@Mojo( name = "update-child-modules", requiresProject = true, requiresDirectInvocation = true, aggregator = true,
@Mojo( name = "update-child-modules", aggregator = true,
threadSafe = true )
public class UpdateChildModulesMojo
extends AbstractVersionsUpdaterMojo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-1
*/
@Mojo( name = "update-parent",
requiresProject = true,
requiresDirectInvocation = true,
threadSafe = true )
@Mojo( name = "update-parent", threadSafe = true )
public class UpdateParentMojo extends AbstractVersionsUpdaterMojo
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-1
*/
@Mojo( name = "update-properties",
requiresProject = true,
requiresDirectInvocation = true,
threadSafe = true )
@Mojo( name = "update-properties", threadSafe = true )
public class UpdatePropertiesMojo extends AbstractVersionsDependencyUpdaterMojo
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @author Eric Pabst
* @since 1.3
*/
@Mojo( name = "update-property", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "update-property", threadSafe = true )
public class UpdatePropertyMojo
extends AbstractVersionsUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@
* @author Dan Arcari
* @since 2.3
*/
@Mojo( name = "use-dep-version",
requiresProject = true,
threadSafe = true )
@Mojo( name = "use-dep-version", threadSafe = true )
public class UseDepVersionMojo extends AbstractVersionsDependencyUpdaterMojo
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "use-latest-releases", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-latest-releases", threadSafe = true )
public class UseLatestReleasesMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* @author Stephen Connolly
* @since 1.0-beta-1
*/
@Mojo( name = "use-latest-snapshots", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-latest-snapshots", threadSafe = true )
public class UseLatestSnapshotsMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "use-latest-versions", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-latest-versions", threadSafe = true )
public class UseLatestVersionsMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "use-next-releases", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-next-releases", threadSafe = true )
public class UseNextReleasesMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* @author Stephen Connolly
* @since 1.0-beta-1
*/
@Mojo( name = "use-next-snapshots", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-next-snapshots", threadSafe = true )
public class UseNextSnapshotsMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "use-next-versions", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-next-versions", threadSafe = true )
public class UseNextVersionsMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @author Stephen Connolly
* @since 2.2
*/
@Mojo( name = "use-reactor", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-reactor", threadSafe = true )
public class UseReactorMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* @author Stephen Connolly
* @since 1.0-alpha-3
*/
@Mojo( name = "use-releases", requiresProject = true, requiresDirectInvocation = true, threadSafe = true )
@Mojo( name = "use-releases", threadSafe = true )
public class UseReleasesMojo
extends AbstractVersionsDependencyUpdaterMojo
{
Expand Down

0 comments on commit 9d9991e

Please sign in to comment.