groovy:generateStubs

Full name:

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

Description:

Generate Java stubs from Groovy sources.

Attributes:

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

Required Parameters

Name Type Since Description
outputDirectory File 1.0-beta-2 The directory where generated Java stub files will be placed.
Default value is: ${project.build.directory}/generated-sources/groovy-stubs/main.

Optional Parameters

Name Type Since Description
classpath ArtifactItem[] 1.0-beta-2 Additional artifacts to add to the classpath (in addition to the classpath which is picked up from the executing poms configuration).
providerSelection String 1.0-beta-2 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.
sources FileSet[] 1.0-beta-2 Source files to be included. If not specified, then the default will be used.

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-beta-2
  • Required: No

outputDirectory:

The directory where generated Java stub files will be placed.
  • Type: java.io.File
  • Since: 1.0-beta-2
  • Required: Yes
  • Default: ${project.build.directory}/generated-sources/groovy-stubs/main

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-beta-2
  • Required: No
  • Expression: ${gmaven.runtime}

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-beta-2
  • Required: No