Record Class PluginMigration
java.lang.Object
java.lang.Record
org.apache.maven.cling.invoker.mvnup.goals.PluginMigration
- Record Components:
oldGroupId- the Maven groupId of the old plugin to migrate fromoldArtifactId- the Maven artifactId of the old plugin to migrate fromnewGroupId- the Maven groupId of the new plugin to migrate tonewArtifactId- the Maven artifactId of the new plugin to migrate tominVersion- the minimum version of the new plugin required for Maven 4 compatibilityreason- the reason why this plugin needs to be migrated
public record PluginMigration(String oldGroupId, String oldArtifactId, String newGroupId, String newArtifactId, String minVersion, String reason)
extends Record
Plugin migration configuration for Maven 4 compatibility.
This record holds information about plugins that need to be replaced
by a different artifact (different groupId and/or artifactId) to work
properly with Maven 4.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theminVersionrecord component.Returns the value of thenewArtifactIdrecord component.Returns the value of thenewGroupIdrecord component.Returns the value of theoldArtifactIdrecord component.Returns the value of theoldGroupIdrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PluginMigration
public PluginMigration(String oldGroupId, String oldArtifactId, String newGroupId, String newArtifactId, String minVersion, String reason) Creates an instance of aPluginMigrationrecord class.- Parameters:
oldGroupId- the value for theoldGroupIdrecord componentoldArtifactId- the value for theoldArtifactIdrecord componentnewGroupId- the value for thenewGroupIdrecord componentnewArtifactId- the value for thenewArtifactIdrecord componentminVersion- the value for theminVersionrecord 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). -
oldGroupId
Returns the value of theoldGroupIdrecord component.- Returns:
- the value of the
oldGroupIdrecord component
-
oldArtifactId
Returns the value of theoldArtifactIdrecord component.- Returns:
- the value of the
oldArtifactIdrecord component
-
newGroupId
Returns the value of thenewGroupIdrecord component.- Returns:
- the value of the
newGroupIdrecord component
-
newArtifactId
Returns the value of thenewArtifactIdrecord component.- Returns:
- the value of the
newArtifactIdrecord component
-
minVersion
Returns the value of theminVersionrecord component.- Returns:
- the value of the
minVersionrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-