@Mojo(name="compileTests",
defaultPhase=TEST_COMPILE,
requiresDependencyResolution=TEST,
threadSafe=true)
public class CompileTestsMojo
extends AbstractCompileMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
skipTests
Flag to allow test compilation to be skipped.
|
protected File |
testOutputDirectory
The location for the compiled test classes.
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
testSources
The Groovy test source files (relative paths).
|
configScript, debug, GROOVY_1_6_0, GROOVY_2_0_0_BETA3, GROOVY_2_1_0_BETA1, GROOVY_2_1_3, GROOVY_2_3_3, GROOVY_2_5_0_ALPHA1, GROOVY_2_5_3, GROOVY_2_5_7, GROOVY_2_6_0_ALPHA1, GROOVY_2_6_0_ALPHA4, GROOVY_3_0_0_ALPHA1, GROOVY_3_0_0_ALPHA2, GROOVY_3_0_0_ALPHA4, GROOVY_3_0_0_BETA1, GROOVY_3_0_0_BETA2, GROOVY_3_0_3, GROOVY_3_0_5, GROOVY_3_0_6, GROOVY_3_0_8, GROOVY_4_0_0_ALPHA1, GROOVY_4_0_0_ALPHA3, GROOVY_4_0_0_BETA1, GROOVY_4_0_11, GROOVY_4_0_16, GROOVY_4_0_2, GROOVY_4_0_21, GROOVY_4_0_24, GROOVY_4_0_27, GROOVY_4_0_6, GROOVY_5_0_0_ALPHA1, GROOVY_5_0_0_ALPHA11, GROOVY_5_0_0_ALPHA13, GROOVY_5_0_0_ALPHA3, GROOVY_5_0_0_ALPHA8, includeClasspath, invokeDynamic, parallelParsing, parameters, previewFeatures, skipBytecodeCheck, sourceEncoding, targetBytecode, tolerance, verbose, warningLevelMAIN, TESTclassWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_1_8, JAVA_12, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session| Constructor and Description |
|---|
CompileTestsMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this mojo.
|
doCompile, setupCompilationUnit, setupCompilerConfiguration, translateJavacTargetToTargetBytecode, verifyGroovyVersionSupportsTargetBytecodegetFiles, getFilesets, getTestFiles, getTestFilesetsgetJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWrangler@Parameter protected org.apache.maven.shared.model.fileset.FileSet[] testSources
@Parameter(defaultValue="${project.build.testOutputDirectory}")
protected File testOutputDirectory
@Parameter(property="maven.test.skip",
defaultValue="false")
protected boolean skipTests
Copyright © 2011–2025. All rights reserved.