Class CoordinateConfiguration

java.lang.Object
net.bytebuddy.build.maven.CoordinateConfiguration
Direct Known Subclasses:
Initialization, Transformation

public class CoordinateConfiguration extends Object
An configuration of a Maven coordinate.
  • Field Details

    • groupId

      @MaybeNull protected String groupId
      The group id of the project containing the plugin type or null if the current project's group id should be used.
    • artifactId

      @MaybeNull protected String artifactId
      The artifact id of the project containing the plugin type or null if the current project's artifact id should be used.
    • version

      @MaybeNull protected String version
      The version of the project containing the plugin type or null if the current project's version should be used.
    • packaging

      @MaybeNull protected String packaging
      The version of the project containing the plugin type or null if the current project's packaging should be used.
  • Constructor Details

    • CoordinateConfiguration

      public CoordinateConfiguration()
  • Method Details

    • 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

      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.