public abstract class AbstractGroovyStubSourcesMojo extends AbstractGroovySourcesMojo
MAIN, 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 |
|---|
AbstractGroovyStubSourcesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<File> |
getStubs(File outputDirectory)
Gets the set of stub files in specified directory.
|
protected static void |
removeSourceRoot(org.apache.maven.project.MavenProject project,
String scopeToRemove,
File sourceDirectory)
Removes the source roots from the project, using reflection to avoid breaking changes in Maven 4.
|
getFiles, getFilesets, getTestFiles, getTestFilesetsgetJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWranglergetLog, getPluginContext, setLog, setPluginContextprotected static void removeSourceRoot(org.apache.maven.project.MavenProject project,
String scopeToRemove,
File sourceDirectory)
throws ClassNotFoundException,
NoSuchFieldException,
NoSuchMethodException,
IllegalAccessException
project - the Maven projectscopeToRemove - the scope to remove (main or test)sourceDirectory - the source directory to removeClassNotFoundException - when a class needed cannot be foundNoSuchFieldException - when a field needed cannot be foundNoSuchMethodException - when a method needed cannot be foundIllegalAccessException - when a method needed cannot be accessedCopyright © 2011–2025. All rights reserved.