Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.3
-
None
-
Patch
Description
It would be good to support annotations for package definitions and import statements.
It would allow scripts like this:
@Grab(group='commons-lang', module='commons-lang', version='2.4') package foo @Grab(group='com.google.collections', module='google-collections', version='1.0-rc2') import com.google.common.collect.HashBiMap import static org.apache.commons.lang.WordUtils.* def fruit = [grape:'purple', lemon:'yellow', orange:'orange'] as HashBiMap assert capitalize(fruit.inverse().yellow) == 'Lemon'