From 748bf51c033c4d9098a51d7cd3d943748a413d2c Mon Sep 17 00:00:00 2001 From: Benjamin Marwell Date: Sat, 14 Oct 2023 14:13:10 +0200 Subject: [PATCH] [#282] add groovy.fork property and fork paramter. --- .../codehaus/gmavenplus/mojo/AbstractCompileMojo.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/codehaus/gmavenplus/mojo/AbstractCompileMojo.java b/src/main/java/org/codehaus/gmavenplus/mojo/AbstractCompileMojo.java index 8c44ab56..58525328 100644 --- a/src/main/java/org/codehaus/gmavenplus/mojo/AbstractCompileMojo.java +++ b/src/main/java/org/codehaus/gmavenplus/mojo/AbstractCompileMojo.java @@ -312,6 +312,15 @@ public abstract class AbstractCompileMojo extends AbstractGroovySourcesMojo { @Parameter(defaultValue = "false") protected boolean previewFeatures; + /** + * Whether to run the compiler using {@code groovyc} in a separate process. + *

+ * {@code groovyc} will be search in {@code GROOVY_HOME/bin} first and then on the {@code PATH}. + * If no executable was found, the compilation fails. + */ + @Parameter(property = "groovy.fork", defaultValue = "false") + protected boolean fork; + /** * Performs compilation of compile mojos. *