codeconsole commented on code in PR #15759:
URL: https://github.com/apache/grails-core/pull/15759#discussion_r3469198847
##########
grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/core/GrailsExtension.groovy:
##########
@@ -93,6 +93,40 @@ class GrailsExtension {
*/
List<String> starImports = []
+ /**
+ * Convenience shortcut that opts every controller, service and tag
library into
+ * {@code @GrailsCompileStatic} - equivalent to enabling {@link
#compileStaticControllers},
+ * {@link #compileStaticServices} and {@link #compileStaticTagLibs}
together. Disabled by default.
+ * The individual flags are still honoured, so this can be combined with
them; a per-class
+ * {@code @CompileDynamic} (or {@code @CompileStatic}/{@code
@GrailsCompileStatic}) annotation always
+ * wins over this default.
+ */
+ boolean compileStaticArtefacts = false
+
+ /**
+ * Whether every controller under {@code grails-app/controllers} should be
compiled with
+ * {@code @GrailsCompileStatic} automatically. Disabled by default.
Individual controllers can opt out
+ * by carrying their own {@code @CompileDynamic} (or {@code
@CompileStatic}/{@code @GrailsCompileStatic})
+ * annotation, which is always honoured over this default.
+ */
+ boolean compileStaticControllers = false
Review Comment:
good idea, done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]