Package net.bytebuddy.build.maven
Class CoordinateConfiguration
- java.lang.Object
-
- net.bytebuddy.build.maven.CoordinateConfiguration
-
- Direct Known Subclasses:
Initialization
,Transformation
public class CoordinateConfiguration extends java.lang.Object
An configuration of a Maven coordinate.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
artifactId
The artifact id of the project containing the plugin type ornull
if the current project's artifact id should be used.protected java.lang.String
groupId
The group id of the project containing the plugin type ornull
if the current project's group id should be used.protected java.lang.String
packaging
The version of the project containing the plugin type ornull
if the current project's packaging should be used.protected java.lang.String
version
The version of the project containing the plugin type ornull
if the current project's version should be used.
-
Constructor Summary
Constructors Constructor Description CoordinateConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MavenCoordinate
asCoordinate(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging)
Resolves this transformation to a Maven coordinate.protected java.lang.String
getArtifactId(java.lang.String artifactId)
Returns the artifact id to use.protected java.lang.String
getGroupId(java.lang.String groupId)
Returns the group id to use.protected java.lang.String
getPackaging(java.lang.String packaging)
Returns the version to use.protected java.lang.String
getVersion(java.lang.String version)
Returns the version to use.
-
-
-
Field Detail
-
groupId
protected java.lang.String groupId
The group id of the project containing the plugin type ornull
if the current project's group id should be used.
-
artifactId
protected java.lang.String artifactId
The artifact id of the project containing the plugin type ornull
if the current project's artifact id should be used.
-
version
protected java.lang.String version
The version of the project containing the plugin type ornull
if the current project's version should be used.
-
packaging
protected java.lang.String packaging
The version of the project containing the plugin type ornull
if the current project's packaging should be used.
-
-
Method Detail
-
getGroupId
protected java.lang.String getGroupId(java.lang.String groupId)
Returns the group id to use.- Parameters:
groupId
- The current project's group id.- Returns:
- The group id to use.
-
getArtifactId
protected java.lang.String getArtifactId(java.lang.String artifactId)
Returns the artifact id to use.- Parameters:
artifactId
- The current project's artifact id.- Returns:
- The artifact id to use.
-
getVersion
protected java.lang.String getVersion(java.lang.String version)
Returns the version to use.- Parameters:
version
- The current project's version.- Returns:
- The version to use.
-
getPackaging
protected java.lang.String getPackaging(java.lang.String packaging)
Returns the version to use.- Parameters:
packaging
- The current project's packaging.- Returns:
- The packaging to use.
-
asCoordinate
public MavenCoordinate asCoordinate(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.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.
-
-