Class PomPropertiesPlugin

java.lang.Object
org.gradle.pomproperties.PomPropertiesPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public abstract class PomPropertiesPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Adds a Maven-style META-INF/maven/<groupId>/<artifactId>/pom.properties to the main jar so Maven-aware tooling can identify the artifact.

The coordinates are wired by convention from the project: groupId from project.group, artifactId from project.name, and version from project.version. They can be overridden via the PomPropertiesExtension.

The pom.properties is only added once the java (or java-library) plugin is applied; it is attached to the jar task only.

  • Constructor Details

    • PomPropertiesPlugin

      public PomPropertiesPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>