public abstract class AbstractGroovyMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GROOVY_SOURCES_PATTERN
The pattern defining Groovy files.
|
protected static String |
JAVA_SOURCES_PATTERN
The pattern defining Java stub files.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository.
|
protected List<org.apache.maven.artifact.Artifact> |
pluginArtifacts
The plugin dependencies.
|
protected org.apache.maven.project.MavenProject |
project
The Maven project this plugin is being used on.
|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
The reactor projects.
|
protected org.apache.maven.execution.MavenSession |
session
The Maven Session this plugin is being used on.
|
protected org.apache.maven.settings.Settings |
settings
The Maven Settings.
|
| Constructor and Description |
|---|
AbstractGroovyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.artifact.Artifact |
getGroovyDependency()
Gets the Groovy dependency used by the project.
|
protected Version |
getGroovyVersion()
Gets the version of Groovy used from the dependency information.
|
protected String |
getGroovyVersionString()
Gets the version string of Groovy used from the dependency information.
|
protected Version |
getJavaVersion()
Gets the version of Java executing this mojo as a Version object.
|
protected String |
getJavaVersionString()
Gets the version of Java executing this mojo as a String.
|
protected boolean |
isGroovyArtifactId(org.apache.maven.artifact.Artifact artifact)
Whether the artifactId of the dependency is Groovy's artifactId.
|
protected boolean |
isGroovyArtifactId(org.apache.maven.model.Dependency dependency)
Whether the artifactId of the dependency is Groovy's artifactId.
|
protected boolean |
isGroovyGroupId(org.apache.maven.artifact.Artifact artifact)
Whether the groupId of the dependency is Groovy's groupId.
|
protected boolean |
isGroovyGroupId(org.apache.maven.model.Dependency dependency)
Whether the groupId of the dependency is Groovy's groupId.
|
protected boolean |
isGroovyIndy()
Gets the version of Groovy used from the dependency information.
|
protected boolean |
isJavaSupportIndy()
Determines whether the version of Java executing this mojo supports invokedynamic (is at least 1.7).
|
protected void |
logGroovyVersion(String goal)
Logs the version of groovy used by this mojo.
|
getLog, getPluginContext, setLog, setPluginContextprotected static final String GROOVY_SOURCES_PATTERN
protected static final String JAVA_SOURCES_PATTERN
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.execution.MavenSession session
protected org.apache.maven.settings.Settings settings
protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected List<org.apache.maven.project.MavenProject> reactorProjects
protected void logGroovyVersion(String goal)
goal - The goal to mention in the log statement showing Groovy versionprotected String getGroovyVersionString()
protected Version getGroovyVersion()
protected boolean isGroovyIndy()
true if the version of Groovy uses InvokeDynamic,
false if not or Groovy dependency cannot be found.protected org.apache.maven.artifact.Artifact getGroovyDependency()
protected boolean isGroovyGroupId(org.apache.maven.model.Dependency dependency)
dependency - The dependency to inspecttrue if the dependency's groupId is a Groovy groupId, false otherwiseprotected boolean isGroovyArtifactId(org.apache.maven.model.Dependency dependency)
dependency - The dependency to inspecttrue if the dependency's groupId is a Groovy groupId, false otherwiseprotected boolean isGroovyGroupId(org.apache.maven.artifact.Artifact artifact)
artifact - The dependency to inspecttrue if the dependency's groupId is a Groovy groupId, false otherwiseprotected boolean isGroovyArtifactId(org.apache.maven.artifact.Artifact artifact)
artifact - The dependency to inspecttrue if the dependency's groupId is a Groovy groupId, false otherwiseprotected boolean isJavaSupportIndy()
true if the running Java supports invokedynamic, false otherwiseprotected Version getJavaVersion()
protected String getJavaVersionString()
Copyright © 2011-2014. All Rights Reserved.