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 String
The artifact id of the project containing the plugin type ornull
if the current project's artifact id should be used.protected String
The group id of the project containing the plugin type ornull
if the current project's group id should be used.protected String
The version of the project containing the plugin type ornull
if the current project's packaging should be used.protected String
The version of the project containing the plugin type ornull
if the current project's version should be used. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MavenCoordinate
asCoordinate
(String groupId, String artifactId, String version, String packaging) Resolves this transformation to a Maven coordinate.protected String
getArtifactId
(String artifactId) Returns the artifact id to use.protected String
getGroupId
(String groupId) Returns the group id to use.protected String
getPackaging
(String packaging) Returns the version to use.protected String
getVersion
(String version) Returns the version to use.
-
Field Details
-
groupId
The group id of the project containing the plugin type ornull
if the current project's group id should be used. -
artifactId
The artifact id of the project containing the plugin type ornull
if the current project's artifact id should be used. -
version
The version of the project containing the plugin type ornull
if the current project's version should be used. -
packaging
The version of the project containing the plugin type ornull
if 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.
-