groovy:compile

Full name:

org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:compile

Description:

Compiles Groovy sources.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Since version: 1.0-alpha-1.
  • Binds by default to the lifecycle phase: compile.

Required Parameters

Name Type Since Description
outputDirectory File 1.0-alpha-1 The directory where generated Java class files will be placed.
Default value is: ${project.build.outputDirectory}.

Optional Parameters

Name Type Since Description
classpath ArtifactItem[] 1.0-alpha-1 Additional artifacts to add to the classpath (in addition to the classpath which is picked up from the executing poms configuration).
debug boolean 1.0-alpha-1 Turns debugging operation on or off.
Default value is: false.
defaultScriptExtension String 1.0-alpha-1 Set the default extention for Groovy script source files.
Default value is: .groovy.
providerSelection String 1.0-alpha-1 A comma-seperated list of provider keys, in order of preference of selection. If the invoking JVM is at least Java 1.5, then the Groovy 1.6 runtime will be used, else the Groovy 1.5 runtime is used.
scriptBaseClassname String 1.0-alpha-1 Sets the name of the base class for scripts. It must be a subclass of groovy.lang.Script.
sourceEncoding String 1.0-alpha-1 Sets the encoding to be used when reading source files.
Default value is: ${file.encoding}.
sources FileSet[] 1.0-alpha-1 Source files to be included. If not specified, then the default will be used.
stacktrace boolean 1.0-alpha-1 Enable compiler to report stack trace information if a problem occurs.
Default value is: false.
targetBytecode String 1.0-alpha-1 Allow setting the bytecode compatibility.
tolerance int 1.0-alpha-1 Sets the error tolerance, which is the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted.
Default value is: 0.
verbose boolean 1.0-alpha-1 Turns verbose operation on or off.
Default value is: false.

Parameter Details

classpath:

Additional artifacts to add to the classpath (in addition to the classpath which is picked up from the executing poms configuration).
  • Type: org.codehaus.groovy.maven.common.ArtifactItem[]
  • Since: 1.0-alpha-1
  • Required: No

debug:

Turns debugging operation on or off.
  • Type: boolean
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${debug}
  • Default: false

defaultScriptExtension:

Set the default extention for Groovy script source files.
  • Type: java.lang.String
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${defaultScriptExtension}
  • Default: .groovy

outputDirectory:

The directory where generated Java class files will be placed.
  • Type: java.io.File
  • Since: 1.0-alpha-1
  • Required: Yes
  • Default: ${project.build.outputDirectory}

providerSelection:

A comma-seperated list of provider keys, in order of preference of selection. If the invoking JVM is at least Java 1.5, then the Groovy 1.6 runtime will be used, else the Groovy 1.5 runtime is used.
  • Type: java.lang.String
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${gmaven.runtime}

scriptBaseClassname:

Sets the name of the base class for scripts. It must be a subclass of groovy.lang.Script.
  • Type: java.lang.String
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${scriptBaseClassname}

sourceEncoding:

Sets the encoding to be used when reading source files.
  • Type: java.lang.String
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${sourceEncoding}
  • Default: ${file.encoding}

sources:

Source files to be included. If not specified, then the default will be used.
  • Type: org.apache.maven.shared.model.fileset.FileSet[]
  • Since: 1.0-alpha-1
  • Required: No

stacktrace:

Enable compiler to report stack trace information if a problem occurs.
  • Type: boolean
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${stacktrace}
  • Default: false

targetBytecode:

Allow setting the bytecode compatibility.
  • Type: java.lang.String
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${targetBytecode}

tolerance:

Sets the error tolerance, which is the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted.
  • Type: int
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${tolerance}
  • Default: 0

verbose:

Turns verbose operation on or off.
  • Type: boolean
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${verbose}
  • Default: false