Class PomPropertiesExtension

java.lang.Object
org.gradle.pomproperties.PomPropertiesExtension

public abstract class PomPropertiesExtension extends Object
Configuration for the pom.properties generated into the main jar.

By convention the coordinates are taken from the project: groupId from project.group, artifactId from project.name, and version from project.version. Any of them can be overridden, for example:

 pomProperties {
     artifactId = "custom-artifact-id"
 }
 
  • Constructor Details

    • PomPropertiesExtension

      public PomPropertiesExtension()
  • Method Details

    • getGroupId

      public abstract org.gradle.api.provider.Property<String> getGroupId()
      The Maven groupId. Defaults to project.group.
    • getArtifactId

      public abstract org.gradle.api.provider.Property<String> getArtifactId()
      The Maven artifactId. Defaults to project.name.
    • getVersion

      public abstract org.gradle.api.provider.Property<String> getVersion()
      The Maven version. Defaults to project.version.