Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-4840] document requiredMavenVersion in plugin descriptor #1444

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class PluginDescriptor extends ComponentSetDescriptor implements Cloneabl

private String description;

// MNG-4840
private String requiredMavenVersion;

private Plugin plugin;
Expand Down Expand Up @@ -295,10 +296,22 @@ public String getDescription() {
return description;
}

/**
* Set required Maven version.
*
* @param requiredMavenVersion Maven version required by the plugin
* @since 3.0.2
*/
public void setRequiredMavenVersion(String requiredMavenVersion) {
this.requiredMavenVersion = requiredMavenVersion;
}

/**
* Get required Maven version.
*
* @return the Maven version required by the plugin
* @since 3.0.2
*/
public String getRequiredMavenVersion() {
return requiredMavenVersion;
}
Expand Down
9 changes: 9 additions & 0 deletions maven-plugin-api/src/main/mdo/plugin.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ under the License.
<type>boolean</type>
<defaultValue>true</defaultValue>
</field>
<field>
<name>requiredMavenVersion</name>
<version>1.0.0</version>
<description>
Minimum Maven version required to use the plugin.
@since Maven 3.0.2
</description>
<type>String</type>
</field>
<field xdoc.separator="blank">
<name>mojos</name>
<version>1.0.0</version>
Expand Down
Loading