Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It would be rather desirable to allow pre-compiled typechecking scripts, if reasonably possible.
Not only the repeated compilation of the script considerably increases the build time (and with hundreds of sources the difference is not negligible); besides, if one uses AST transforms, they get each time applied to the script, too.
Most transforms are probably not written to do that – myself, I had to check explicitly for sourceUnit.name=='Script1.groovy' and skip the transform in this case, but that's an extremely ugly and highly fragile solution.