@groovy.transform.CompileStatic class GrailsCompileStaticArtefactsProvider extends java.lang.Object implements CommandLineArgumentProvider
Publishes the nested grails { compileStatic { controllers / services / tagLibs }} opt-ins
(see BuildSettings#COMPILE_STATIC_CONTROLLERS#COMPILE_STATIC_CONTROLLERS, BuildSettings#COMPILE_STATIC_SERVICES#COMPILE_STATIC_SERVICES
and BuildSettings#COMPILE_STATIC_TAGLIBS#COMPILE_STATIC_TAGLIBS) to the Groovy compiler's worker JVM as system
properties so the CompileStaticArtefactInjector AST transform can stamp
@GrailsCompileStatic onto the matching artefacts. The compileStatic { all } shortcut
is folded into all three.
The lazy GrailsCompileStaticOptions properties are read in asArguments (at compile time, not configuration time). The effective values are also exposed as Input getters so toggling any flag invalidates the compile task and triggers recompilation.
| Constructor and description |
|---|
GrailsCompileStaticArtefactsProvider(GrailsCompileStaticOptions compileStatic) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Iterable<java.lang.String> |
asArguments() |
|
boolean |
isCompileStaticControllers() |
|
boolean |
isCompileStaticServices() |
|
boolean |
isCompileStaticTagLibs() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |