Record Class PluginUpgrade
java.lang.Object
java.lang.Record
org.apache.maven.cling.invoker.mvnup.goals.PluginUpgrade
- Record Components:
groupId- the Maven groupId of the pluginartifactId- the Maven artifactId of the pluginminVersion- the minimum version required for Maven 4 compatibility (for 3.x users)latestPreRelease- the latest available 4.x pre-release version, ornullif the plugin has no 4.x pre-release line. Used to upgrade old 4.x alpha/beta/RC versions to the latest pre-release rather than downgrading to a 3.x version.reason- the reason why this plugin needs to be upgraded
public record PluginUpgrade(String groupId, String artifactId, String minVersion, String latestPreRelease, String reason)
extends Record
Plugin upgrade configuration for Maven 4 compatibility.
This record holds information about plugins that need to be upgraded
to specific minimum versions to work properly with Maven 4.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginUpgrade(String groupId, String artifactId, String minVersion, String reason) Convenience constructor for plugins without a 4.x pre-release line.PluginUpgrade(String groupId, String artifactId, String minVersion, String latestPreRelease, String reason) Creates an instance of aPluginUpgraderecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelatestPreReleaserecord component.Returns the value of theminVersionrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PluginUpgrade
Convenience constructor for plugins without a 4.x pre-release line. -
PluginUpgrade
public PluginUpgrade(String groupId, String artifactId, String minVersion, String latestPreRelease, String reason) Creates an instance of aPluginUpgraderecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentminVersion- the value for theminVersionrecord componentlatestPreRelease- the value for thelatestPreReleaserecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
minVersion
Returns the value of theminVersionrecord component.- Returns:
- the value of the
minVersionrecord component
-
latestPreRelease
Returns the value of thelatestPreReleaserecord component.- Returns:
- the value of the
latestPreReleaserecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-