gplus:generateStubs
Full name:
org.codehaus.gmavenplus:gmavenplus-plugin:4.0.1:generateStubs
Description:
Generates stubs for the main Groovy sources and adds them to Maven's sources for the Maven compiler plugin to find. Note that this mojo requires Groovy >= 1.8.2.
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
compile
. - The goal is thread-safe and supports parallel builds.
- Since version:
1.0-beta-1
. - Binds by default to the lifecycle phase:
generate-sources
.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<debug> |
boolean |
- |
Whether Groovy compiler should be set to debug. Default: false |
<includeClasspath> |
IncludeClasspath |
1.8.0 |
What classpath to include. One of
Default: PROJECT_ONLY |
<skipBytecodeCheck> |
boolean |
1.9.0 |
Whether to check that the version of Groovy used is able to use the requested targetBytecode .Default: false User Property: skipBytecodeCheck |
<sourceEncoding> |
String |
- |
The encoding of source files. Default: ${project.build.sourceEncoding} |
<sources> |
FileSet[] |
- |
The Groovy source files (relative paths). Default: "${project.basedir}/src/main/groovy/**/*.groovy" |
<stubsOutputDirectory> |
File |
- |
The location for the compiled classes. Default: ${project.build.directory}/generated-sources/groovy-stubs/main |
<targetBytecode> |
String |
1.0-beta-3 |
The Groovy compiler bytecode compatibility. One of
Default: 1.8 User Property: maven.compiler.target |
<tolerance> |
int |
- |
Groovy compiler error tolerance (the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted). Default: 0 |
<verbose> |
boolean |
- |
Whether Groovy compiler should be set to verbose. Default: false |
<warningLevel> |
int |
- |
Groovy compiler warning level. Should be one of:
Default: 1 |
Parameter Details
<debug>
Whether Groovy compiler should be set to debug.
- Type:
boolean
- Required:
No
- Default:
false
<includeClasspath>
What classpath to include. One of
- PROJECT_ONLY
- PROJECT_AND_PLUGIN
- PLUGIN_ONLY
- Type:
org.codehaus.gmavenplus.model.IncludeClasspath
- Since:
1.8.0
- Required:
No
- Default:
PROJECT_ONLY
<skipBytecodeCheck>
Whether to check that the version of Groovy used is able to use the requested
targetBytecode
.- Type:
boolean
- Since:
1.9.0
- Required:
No
- User Property:
skipBytecodeCheck
- Default:
false
<sourceEncoding>
The encoding of source files.
- Type:
java.lang.String
- Required:
No
- Default:
${project.build.sourceEncoding}
<sources>
The Groovy source files (relative paths). Default: "${project.basedir}/src/main/groovy/**/*.groovy"
- Type:
org.apache.maven.shared.model.fileset.FileSet[]
- Required:
No
<stubsOutputDirectory>
The location for the compiled classes.
- Type:
java.io.File
- Required:
No
- Default:
${project.build.directory}/generated-sources/groovy-stubs/main
<targetBytecode>
The Groovy compiler bytecode compatibility. One of
- 1.4 (or 4)
- 1.5 (or 5)
- 1.6 (or 6)
- 1.7 (or 7)
- 1.8 (or 8)
- 9 (or 1.9)
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- Type:
java.lang.String
- Since:
1.0-beta-3
- Required:
No
- User Property:
maven.compiler.target
- Default:
1.8
<tolerance>
Groovy compiler error tolerance (the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted).
- Type:
int
- Required:
No
- Default:
0
<verbose>
Whether Groovy compiler should be set to verbose.
- Type:
boolean
- Required:
No
- Default:
false
<warningLevel>
Groovy compiler warning level. Should be one of:
- 0
- None
- 1
- Likely Errors
- 2
- Possible Errors
- 3
- Paranoia
- Type:
int
- Required:
No
- Default:
1