It's certainly a common request, that said, for example I just found a
question on Stackoverflow here:
https://stackoverflow.com/questions/11866901/is-there-any-global-flag-for-groovy-static-compilation
This one shows how to do that with Gradle.

Guillaume

On Thu, Oct 31, 2019 at 10:06 AM Guillaume Laforge <glafo...@gmail.com>
wrote:

> Hmm, I wouldn't commit that straight away, Daniel.
> I'd also like to have Paul's thoughts on this.
> There's also some past conversations on this topic, existing issues (like
> GROOVY-5503 <https://issues.apache.org/jira/browse/GROOVY-5503>).
> It's already to set flags in different ways to enable that (config script,
> compiler customizers, etc), so it's not like we can't do it already in a
> way or another.
>
> Guillaume
>
>
> On Thu, Oct 31, 2019 at 4:39 AM Daniel.Sun <notificati...@github.com>
> wrote:
>
>> …Dynamic` by default
>> ------------------------------
>> You can view, comment on, or merge this pull request online at:
>>
>>   https://github.com/apache/groovy/pull/1056
>> Commit Summary
>>
>>    - GROOVY-9296: [GEP] Import `TypeChecked`, `CompileStatic` and
>>    `CompileDynamic` by default
>>
>> File Changes
>>
>>    - *M*
>>    src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
>>    <https://github.com/apache/groovy/pull/1056/files#diff-0> (19)
>>    - *A* src/test/groovy/bugs/Groovy9296.groovy
>>    <https://github.com/apache/groovy/pull/1056/files#diff-1> (55)
>>
>> Patch Links:
>>
>>    - https://github.com/apache/groovy/pull/1056.patch
>>    - https://github.com/apache/groovy/pull/1056.diff
>>
>> —
>> You are receiving this because you are subscribed to this thread.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/apache/groovy/pull/1056?email_source=notifications&email_token=AAALWI4EPASTXJNYGF3QCNTQRJHPVA5CNFSM4JHDX4GKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HVUMFHA>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AAALWI2YND2PKQQDG4NJYMDQRJHPVANCNFSM4JHDX4GA>
>> .
>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Twitter: @glaforge <http://twitter.com/glaforge>
>


-- 
Guillaume Laforge
Apache Groovy committer
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Twitter: @glaforge <http://twitter.com/glaforge>

Reply via email to