Skip to content

Commit

Permalink
[MNG-7463] Improve documentation about deprecation in Mojo
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Sep 14, 2022
1 parent 5502c0c commit 47e2d68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public class MojoDescriptor
private String executeLifecycle;

/**
* Specify the version when the Mojo was deprecated to the API. Similar to Javadoc deprecated. This will trigger a
* warning when a user tries to configure a parameter marked as deprecated.
* Description with reason of Mojo deprecation. Similar to Javadoc {@code @deprecated}.
* This will trigger a warning when a user tries to use a Mojo marked as deprecated.
*/
private String deprecated;

Expand Down Expand Up @@ -170,15 +170,15 @@ public void setLanguage( String language )
}

/**
* @return <code>true</code> if the Mojo is deprecated, <code>false</code> otherwise.
* @return Description with reason of a Mojo deprecation.
*/
public String getDeprecated()
{
return deprecated;
}

/**
* @param deprecated <code>true</code> to deprecate the Mojo, <code>false</code> otherwise.
* @param deprecated Description with reason of a Mojo deprecation.
*/
public void setDeprecated( String deprecated )
{
Expand Down
14 changes: 7 additions & 7 deletions maven-plugin-api/src/main/mdo/plugin.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ under the License.
<name>deprecated</name>
<version>1.0.0</version>
<type>String</type>
<description>
Specify the version when the Mojo was deprecated to the API. Similar to Javadoc deprecated. This will
trigger a warning when a user tries to configure a parameter marked as deprecated.
</description>
<description><![CDATA[
Description with the reason of Mojo deprecation. Similar to Javadoc <code>@deprecated</code>
This will trigger a warning when a user tries to use a Mojo marked as deprecated.
]]></description>
</field>
<field>
<name>configurator</name>
Expand Down Expand Up @@ -422,10 +422,10 @@ under the License.
<name>deprecated</name>
<version>1.0.0</version>
<type>String</type>
<description>
Specify the version when the parameter was deprecated to the API. Similar to Javadoc deprecated.
<description><![CDATA[
Description with the reason of parameter deprecation. Similar to Javadoc <code>@deprecated</code>
This will trigger a warning when a user tries to configure a parameter marked as deprecated.
</description>
]]></description>
</field>
</fields>
</class>
Expand Down

0 comments on commit 47e2d68

Please sign in to comment.