Class AbstractGenerateStubsMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateStubsMojo, GenerateTestStubsMojo

public abstract class AbstractGenerateStubsMojo extends AbstractGroovyStubSourcesMojo
The base generate stubs mojo, which all generate stubs mojos extend.
Author:
Keegan Witt
  • Field Details

    • GROOVY_1_8_2

      protected static final Version GROOVY_1_8_2
      Groovy 1.8.2 version.
    • sourceEncoding

      @Parameter(defaultValue="${project.build.sourceEncoding}") protected String sourceEncoding
      The encoding of source files.
    • targetBytecode

      @Parameter(property="maven.compiler.target", defaultValue="1.8") protected String 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
      • 24
      • 25
      Using 1.6 (or 6) or 1.7 (or 7) requires Groovy >= 2.1.3. Using 1.8 (or 8) requires Groovy >= 2.3.3. Using 9 (or 1.9) requires Groovy >= 2.5.3, or Groovy >= 2.6.0 alpha 4, or Groovy >= 3.0.0 alpha 2. Using 9 (or 1.9) with invokedynamic requires Groovy >= 2.5.3, or Groovy >= 3.0.0 alpha 2, but not any 2.6 versions. Using 10, 11, or 12 requires Groovy >= 2.5.3, or Groovy >= 3.0.0 alpha 4, but not any 2.6 versions. Using 13 requires Groovy >= 2.5.7, or Groovy >= 3.0.0-beta-1, but not any 2.6 versions. Using 14 requires Groovy >= 3.0.0 beta-2. Using 15 requires Groovy >= 3.0.3. Using 16 requires Groovy >= 3.0.6. Using 17 requires Groovy >= 3.0.8 or Groovy > 4.0.0-alpha-3. Using 18 requires Groovy > 4.0.0-beta-1. Using 19 requires Groovy > 4.0.2. Using 20 requires Groovy > 4.0.6. Using 21 requires Groovy > 4.0.11. Using 22 requires Groovy > 4.0.16 or Groovy > 5.0.0-alpha-3. Using 23 requires Groovy > 4.0.21 or Groovy > 5.0.0-alpha-8. Using 24 requires Groovy > 4.0.24 or Groovy > 5.0.0-alpha-11. Using 25 requires Groovy > 4.0.27 or Groovy > 5.0.0-alpha-13.
      Since:
      1.0-beta-3
    • skipBytecodeCheck

      @Parameter(property="skipBytecodeCheck", defaultValue="false") protected boolean skipBytecodeCheck
      Whether to check that the version of Groovy used is able to use the requested targetBytecode.
      Since:
      1.9.0
    • debug

      @Parameter(defaultValue="false") protected boolean debug
      Whether Groovy compiler should be set to debug.
    • verbose

      @Parameter(defaultValue="false") protected boolean verbose
      Whether Groovy compiler should be set to verbose.
    • warningLevel

      @Parameter(defaultValue="1") protected int warningLevel
      Groovy compiler warning level. Should be one of:
      0
      None
      1
      Likely Errors
      2
      Possible Errors
      3
      Paranoia
    • tolerance

      @Parameter(defaultValue="0") protected int tolerance
      Groovy compiler error tolerance (the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted).
    • includeClasspath

      @Parameter(defaultValue="PROJECT_ONLY") protected IncludeClasspath includeClasspath
      What classpath to include. One of
      • PROJECT_ONLY
      • PROJECT_AND_PLUGIN
      • PLUGIN_ONLY
      Uses the same scope as the required dependency resolution of this mojo. Use only if you know what you're doing.
      Since:
      1.8.0
    • toolchainManager

      @Inject protected org.apache.maven.toolchain.ToolchainManager toolchainManager
      The Maven ToolchainManager.
    • session

      @Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
      The Maven Session.
    • fork

      @Parameter(property="fork", defaultValue="false") protected boolean fork
      Whether to execute in a forked process.
      Since:
      4.3.0
  • Constructor Details

    • AbstractGenerateStubsMojo

      public AbstractGenerateStubsMojo()
  • Method Details