Package de.jjohannes.maven.gmm
Class GradleModuleMetadataMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.jjohannes.maven.gmm.GradleModuleMetadataMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="gmm", defaultPhase=PACKAGE) public class GradleModuleMetadataMojo extends org.apache.maven.plugin.AbstractMojo
Goal that generates Gradle Module Metadata.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Capability>
capabilities
private java.io.File
outputDirectory
protected java.util.List<org.apache.maven.model.Dependency>
platformDependencies
protected org.apache.maven.project.MavenProject
project
-
Constructor Summary
Constructors Constructor Description GradleModuleMetadataMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
assertMarkerCommentDefinedInPom()
void
execute()
private static java.lang.String
getMavenVersion()
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
-
platformDependencies
@Parameter protected java.util.List<org.apache.maven.model.Dependency> platformDependencies
-
capabilities
@Parameter protected java.util.List<Capability> capabilities
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/publications/maven") private java.io.File outputDirectory
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
assertMarkerCommentDefinedInPom
private void assertMarkerCommentDefinedInPom()
-
getMavenVersion
private static java.lang.String getMavenVersion() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-