Package net.bytebuddy.build.maven
Class AbstractUserConfiguration
- java.lang.Object
-
- net.bytebuddy.build.maven.AbstractUserConfiguration
-
- Direct Known Subclasses:
Initialization,Transformation
public class AbstractUserConfiguration extends Object
An abstract base class for a user configuration implying a Maven coordinate.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringartifactIdThe artifact id of the project containing the plugin type ornullif the current project's artifact id should be used.protected StringgroupIdThe group id of the project containing the plugin type ornullif the current project's group id should be used.protected StringpackagingThe version of the project containing the plugin type ornullif the current project's packaging should be used.protected StringversionThe version of the project containing the plugin type ornullif the current project's version should be used.
-
Constructor Summary
Constructors Constructor Description AbstractUserConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MavenCoordinateasCoordinate(String groupId, String artifactId, String version, String packaging)Resolves this transformation to a Maven coordinate.protected StringgetArtifactId(String artifactId)Returns the artifact id to use.protected StringgetGroupId(String groupId)Returns the group id to use.protected StringgetPackaging(String packaging)Returns the version to use.protected StringgetVersion(String version)Returns the version to use.
-
-
-
Field Detail
-
groupId
protected String groupId
The group id of the project containing the plugin type ornullif the current project's group id should be used.
-
artifactId
protected String artifactId
The artifact id of the project containing the plugin type ornullif the current project's artifact id should be used.
-
version
protected String version
The version of the project containing the plugin type ornullif the current project's version should be used.
-
packaging
protected String packaging
The version of the project containing the plugin type ornullif the current project's packaging should be used.
-
-
Method Detail
-
getGroupId
protected String getGroupId(String groupId)
Returns the group id to use.- Parameters:
groupId- The current project's group id.- Returns:
- The group id to use.
-
getArtifactId
protected String getArtifactId(String artifactId)
Returns the artifact id to use.- Parameters:
artifactId- The current project's artifact id.- Returns:
- The artifact id to use.
-
getVersion
protected String getVersion(String version)
Returns the version to use.- Parameters:
version- The current project's version.- Returns:
- The version to use.
-
getPackaging
protected String getPackaging(String packaging)
Returns the version to use.- Parameters:
packaging- The current project's packaging.- Returns:
- The packaging to use.
-
asCoordinate
public MavenCoordinate asCoordinate(String groupId, String artifactId, String version, String packaging)
Resolves this transformation to a Maven coordinate.- Parameters:
groupId- The current project's build id.artifactId- The current project's artifact id.version- The current project's version.packaging- The current project's packaging- Returns:
- The resolved Maven coordinate.
-
-