Fork me on GitHub

gplus:testCompile

Full name:

org.codehaus.gmavenplus:gmavenplus-plugin:1.5:testCompile

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 1.0-beta-1 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.
User property is: configScript.
debug boolean 1.0-beta-1 Whether Groovy compiler should be set to debug.
Default value is: false.
invokeDynamic boolean 1.0-beta-1 Whether to support invokeDynamic (requires Java 7 or greater and Groovy indy 2.0.0-beta-3 or greater).
Default value is: false.
User property is: invokeDynamic.
outputDirectory File 1.0-beta-1 The location for the compiled classes.
Default value is: ${project.build.outputDirectory}.
skipTests boolean 1.0-beta-1 Flag to allow test compilation to be skipped.
Default value is: false.
User property is: maven.test.skip.
sourceEncoding String 1.0-beta-1 The encoding of source files.
Default value is: ${project.build.sourceEncoding}.
sources FileSet[] 1.0-beta-1 The Groovy source files (relative paths). Default: "${project.basedir}/src/main/groovy/**/*.groovy"
targetBytecode String 1.0-beta-1 The Groovy compiler bytecode compatibility. One of
  • 1.4
  • 1.5
  • 1.6
  • 1.7
  • 1.8
Using 1.6 or 1.7 requires Groovy >= 2.1.3, and using 1.8 requires Groovy >= 2.3.3. If an invalid selection is made, Groovy will default to VM determined version (1.4 or 1.5).
Default value is: 1.5.
User property is: maven.compiler.target.
testOutputDirectory File 1.0-beta-1 The location for the compiled test classes.
Default value is: ${project.build.testOutputDirectory}.
testSources FileSet[] 1.0-beta-1 The Groovy test source files (relative paths). Default: "${project.basedir}/src/test/groovy/**/*.groovy"
tolerance int 1.0-beta-1 Groovy compiler error tolerance (the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted).
Default value is: 0.
verbose boolean 1.0-beta-1 Whether Groovy compiler should be set to verbose.
Default value is: false.
warningLevel int 1.0-beta-1 Groovy compiler warning level. Should be one of:
0
None
1
Likely Errors
2
Possible Errors
3
Paranoia

Default value is: 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
  • Since: 1.0-beta-1
  • Required: No
  • User Property: configScript

debug:

Whether Groovy compiler should be set to debug.
  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • Default: false

invokeDynamic:

Whether to support invokeDynamic (requires Java 7 or greater and Groovy indy 2.0.0-beta-3 or greater).
  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • User Property: invokeDynamic
  • Default: false

outputDirectory:

The location for the compiled classes.
  • Type: java.io.File
  • Since: 1.0-beta-1
  • Required: No
  • Default: ${project.build.outputDirectory}

skipTests:

Flag to allow test compilation to be skipped.
  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • User Property: maven.test.skip
  • Default: false

sourceEncoding:

The encoding of source files.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • 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[]
  • Since: 1.0-beta-1
  • Required: No

targetBytecode:

The Groovy compiler bytecode compatibility. One of
  • 1.4
  • 1.5
  • 1.6
  • 1.7
  • 1.8
Using 1.6 or 1.7 requires Groovy >= 2.1.3, and using 1.8 requires Groovy >= 2.3.3. If an invalid selection is made, Groovy will default to VM determined version (1.4 or 1.5).
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • User Property: maven.compiler.target
  • Default: 1.5

testOutputDirectory:

The location for the compiled test classes.
  • Type: java.io.File
  • Since: 1.0-beta-1
  • 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[]
  • Since: 1.0-beta-1
  • 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
  • Since: 1.0-beta-1
  • Required: No
  • Default: 0

verbose:

Whether Groovy compiler should be set to verbose.
  • Type: boolean
  • Since: 1.0-beta-1
  • 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
  • Since: 1.0-beta-1
  • Required: No
  • Default: 1