@groovy.transform.CompileStatic @org.gradle.api.tasks.CacheableTask abstract class FindMainClassTask extends DefaultTask
A task that finds the main task, differs slightly from Boot's version as expects a subclass of GrailsConfiguration
Type | Name and description |
---|---|
FileCollection |
classesDirectory |
Property<java.lang.Boolean> |
isGrailsPlugin |
RegularFileProperty |
mainClassCacheFile |
Property<java.lang.String> |
mainClassName allows forcing the main class name & ensures this task retriggers to save to the cache file if overridden |
Constructor and description |
---|
FindMainClassTask(Project project, ObjectFactory objects) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected MainClassHolder |
findMainClass() |
|
protected FileCollection |
resolveClassesDirs(SourceSetOutput output, Project project) |
|
void |
setMainClassProperty() |
allows forcing the main class name & ensures this task retriggers to save to the cache file if overridden
Groovy Documentation