public abstract class AbstractGroovyMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected ClassWrangler |
classWrangler
The wrangler to use to work with Groovy classes, classpaths, classLoaders, and versions.
|
protected static Version |
GROOVY_1_5_0
Groovy 1.5.0 version.
|
protected static java.lang.String |
GROOVY_SOURCES_PATTERN
The pattern defining Groovy files.
|
protected static Version |
JAVA_1_7
Java 1.7 version.
|
protected static java.lang.String |
JAVA_SOURCES_PATTERN
The pattern defining Java stub files.
|
protected Version |
minGroovyVersion
The minimum version of Groovy that this mojo supports (1.5.0 by
default, but other mojos can override).
|
protected org.apache.maven.plugin.MojoExecution |
mojoExecution
The plugin's mojo execution.
|
protected java.util.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 org.apache.maven.execution.MavenSession |
session
The Maven Session this plugin is being used on.
|
protected boolean |
skipTests
Flag to allow test compilation to be skipped.
|
| Constructor and Description |
|---|
AbstractGroovyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Version |
getJavaVersion()
Gets the version of Java executing this mojo as a Version object.
|
protected java.lang.String |
getJavaVersionString()
Gets the version of Java executing this mojo as a String.
|
protected boolean |
groovyVersionSupportsAction()
Determines whether this mojo can be run with the version of Groovy supplied.
|
protected boolean |
isJavaSupportIndy()
Determines whether the version of Java executing this mojo supports invokedynamic (is at least 1.7).
|
protected void |
logPluginClasspath()
Logs the plugin classpath.
|
getLog, getPluginContext, setLog, setPluginContextprotected static final java.lang.String GROOVY_SOURCES_PATTERN
protected static final java.lang.String JAVA_SOURCES_PATTERN
protected static final Version JAVA_1_7
protected static final Version GROOVY_1_5_0
protected ClassWrangler classWrangler
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.execution.MavenSession session
protected java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected org.apache.maven.plugin.MojoExecution mojoExecution
protected Version minGroovyVersion
protected boolean skipTests
protected void logPluginClasspath()
protected boolean isJavaSupportIndy()
true if the running Java supports invokedynamic, false otherwiseprotected Version getJavaVersion()
protected java.lang.String getJavaVersionString()
protected boolean groovyVersionSupportsAction()
true only if the version of Groovy supports this mojo.