gplus:compileTests
Full name:
org.codehaus.gmavenplus:gmavenplus-plugin:4.0.1:compileTests
Description:
Compiles the test sources. Note that this mojo requires Groovy >= 1.5.0, and >= 2.0.0-beta-3 (the indy version) for compiling with invokedynamic option.
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
test
. - The goal is thread-safe and supports parallel builds.
- Since version:
1.0-beta-1
. - Binds by default to the lifecycle phase:
test-compile
.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<configScript> |
File |
- |
A script for tweaking the configuration options (requires Groovy 2.1.0-beta-1 or greater). Note that its encoding must match your source encoding. |
<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 |
<invokeDynamic> |
boolean |
- |
Whether to support invokeDynamic (requires Java 7 or greater and Groovy indy 2.0.0-beta-3 or greater). Has no effect for Groovy 4, as it is always enabled. Default: false |
<parallelParsing> |
Boolean |
1.11.0 |
Whether to enable Groovy's parallel parsing. Requires Groovy 3.0.5. Is enabled by default for Groovy 4.0.0-alpha-1 or newer. |
<parameters> |
boolean |
- |
Generate metadata for reflection on method parameter names using the functionality provided by JEP 118 (requires Java 8 or greater and Groovy 2.5.0-alpha-1 or greater). Default: false |
<previewFeatures> |
boolean |
1.7.1 |
Whether the bytecode version has preview features enabled (JEP 12). Requires Groovy >= 3.0.0-beta-1 or Groovy >= 2.5.7, but not any 2.6 versions and Java >= 12. Default: false |
<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 |
<skipTests> |
boolean |
- |
Flag to allow test compilation to be skipped. Default: false User Property: maven.test.skip |
<sourceEncoding> |
String |
- |
The encoding of source files. Default: ${project.build.sourceEncoding} |
<targetBytecode> |
String |
- |
The Groovy compiler bytecode compatibility. One of
Default: 1.8 User Property: maven.compiler.target |
<testOutputDirectory> |
File |
- |
The location for the compiled test classes. Default: ${project.build.testOutputDirectory} |
<testSources> |
FileSet[] |
- |
The Groovy test source files (relative paths). Default: "${project.basedir}/src/test/groovy/**/*.groovy" |
<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
<configScript>
A script for tweaking the configuration options (requires Groovy 2.1.0-beta-1 or greater). Note that its encoding must match your source encoding.
- Type:
java.io.File
- Required:
No
<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
<invokeDynamic>
Whether to support invokeDynamic (requires Java 7 or greater and Groovy indy 2.0.0-beta-3 or greater). Has no effect for Groovy 4, as it is always enabled.
- Type:
boolean
- Required:
No
- Default:
false
<parallelParsing>
Whether to enable Groovy's parallel parsing. Requires Groovy 3.0.5. Is enabled by default for Groovy 4.0.0-alpha-1 or newer.
- Type:
java.lang.Boolean
- Since:
1.11.0
- Required:
No
<parameters>
Generate metadata for reflection on method parameter names using the functionality provided by JEP 118 (requires Java 8 or greater and Groovy 2.5.0-alpha-1 or greater).
- Type:
boolean
- Required:
No
- Default:
false
<previewFeatures>
Whether the bytecode version has preview features enabled (JEP 12). Requires Groovy >= 3.0.0-beta-1 or Groovy >= 2.5.7, but not any 2.6 versions and Java >= 12.
- Type:
boolean
- Since:
1.7.1
- Required:
No
- Default:
false
<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
<skipTests>
Flag to allow test compilation to be skipped.
- Type:
boolean
- Required:
No
- User Property:
maven.test.skip
- Default:
false
<sourceEncoding>
The encoding of source files.
- Type:
java.lang.String
- Required:
No
- Default:
${project.build.sourceEncoding}
<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
- Required:
No
- User Property:
maven.compiler.target
- Default:
1.8
<testOutputDirectory>
The location for the compiled test classes.
- Type:
java.io.File
- Required:
No
- Default:
${project.build.testOutputDirectory}
<testSources>
The Groovy test source files (relative paths). Default: "${project.basedir}/src/test/groovy/**/*.groovy"
- Type:
org.apache.maven.shared.model.fileset.FileSet[]
- Required:
No
<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