Description
@Grab must be followed by an import statement - if not, there are compilation errors.
Running this script:
@Grab( 'log4j:log4j:1.2.16' ) println "Hello"
Yields this error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
C:\work\CS\scripts\backup\hello.groovy: 2: unexpected token: println @ line 2, column 1.
println "Hello"
^
1 error