I'm quite sure this problem isn't related to a bug in Groovy.
The reason you're getting this error is because GradleFx starts the
Mxmlc compiler in a different Java process. In some situations this
java process might not have enough heap space by default. Therefore
we have the 'jvmArguments' property which allows you to increase
the heap size.