Class GAV
java.lang.Object
gg.nils.semanticrelease.maven.plugin.util.GAV
Wrapper for a maven project/dependency identified by a groupId/artifactId/version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GAVfrom(org.apache.maven.model.Model model) Builds a GAV object from the given Model object.static GAVfrom(org.apache.maven.model.Parent parent) Builds a GAV object from the given Parent object.static GAVfrom(org.apache.maven.project.MavenProject project) Builds a GAV object from the given MavenProject object.Retrieves the artifactId.Retrieves the groupId.Retrieves the version.inthashCode()voidsetArtifactId(String artifactId) voidsetGroupId(String groupId) voidsetVersion(String version) toString()
-
Constructor Details
-
GAV
public GAV() -
GAV
Builds an immutable GAV object.- Parameters:
groupId- the groupId of the maven objectartifactId- the artifactId of the maven objectversion- the version of the maven object
-
-
Method Details
-
from
Builds a GAV object from the given MavenProject object.- Parameters:
project- the project to extract info from- Returns:
- a new GAV object
-
from
Builds a GAV object from the given Model object.- Parameters:
model- the project model to extract info from- Returns:
- a new GAV object
-
from
Builds a GAV object from the given Parent object.- Parameters:
parent- the parent to extract info from- Returns:
- a new GAV object
-
getGroupId
Retrieves the groupId.- Returns:
- the groupId
-
setGroupId
-
getArtifactId
Retrieves the artifactId.- Returns:
- the artifactId
-
setArtifactId
-
getVersion
Retrieves the version.- Returns:
- the version
-
setVersion
-
hashCode
public int hashCode() -
equals
-
toString
-