Package net.bytebuddy.build.maven
Class CoordinateConfiguration
java.lang.Object
net.bytebuddy.build.maven.CoordinateConfiguration
- Direct Known Subclasses:
Initialization,Transformation
An configuration of a Maven coordinate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe artifact id of the project containing the plugin type ornullif the current project's artifact id should be used.protected StringThe group id of the project containing the plugin type ornullif the current project's group id should be used.protected StringThe version of the project containing the plugin type ornullif the current project's packaging should be used.protected StringThe version of the project containing the plugin type ornullif the current project's version should be used. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
groupId
The group id of the project containing the plugin type ornullif the current project's group id should be used. -
artifactId
The artifact id of the project containing the plugin type ornullif the current project's artifact id should be used. -
version
The version of the project containing the plugin type ornullif the current project's version should be used. -
packaging
The version of the project containing the plugin type ornullif the current project's packaging should be used.
-
-
Constructor Details
-
CoordinateConfiguration
public CoordinateConfiguration()
-
-
Method Details
-
getGroupId
Returns the group id to use.- Parameters:
groupId- The current project's group id.- Returns:
- The group id to use.
-
getArtifactId
Returns the artifact id to use.- Parameters:
artifactId- The current project's artifact id.- Returns:
- The artifact id to use.
-
getVersion
Returns the version to use.- Parameters:
version- The current project's version.- Returns:
- The version to use.
-
getPackaging
Returns the version to use.- Parameters:
packaging- The current project's packaging.- Returns:
- The packaging to use.
-
asCoordinate
protected 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.
-