Strange behaviour when using the Grab annotation

Quoß, Clemens (UIT) <Clemens.Quoss-OQ/e/myJRm8nAjuu/[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <FR6P281MB36115EBF24A648A1B033E282B0652@FR6P281MB3611.DEUP281.PROD.OUTLOOK.COM>
Hello everyone!

When I am running this script with 4.0.17 ...

>>>
@GrabResolver(name = 'nexus', root = 'https://...')
@Grab(group = 'com.jcraft', module = 'jsch', version = '0.1.55')

println "Hallo, Groovy!"
<<<

... I am getting this:

>>>
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
C:\Temp\test.groovy: 4: Unexpected input: '"Hallo, Groovy!"' @ line 4, column 9.
   println "Hallo, Groovy!"
           ^

1 error
<<<

When I remove the Grapes annotations everything works as expected.

Has anyone encountered similar issues? Is there a cure? Is this considered a bug? To me it looks that way. But maybe I am missing something here.

TIA

Regards

Union IT-Services GmbH
Clemens Quoß
FDI-INT
Senior Software Entwickler
Neue Mainzer Straße 12
60311 Frankfurt am Main

Tel. +49 69 2567 1241<tel:+496925671241>
Fax +49 69 2567 61241
Mobil +49 151 55157195
clemens.quoss-OQ/e/myJRm8nAjuu/[email protected]<mailto:clemens.quoss-OQ/e/myJRm8nAjuu/[email protected]>

Sitz der Gesellschaft: Weißfrauenstraße 7, 60311 Frankfurt am Main
Registergericht: Amtsgericht Frankfurt am Main HRB 33314
Geschäftsführer: Stephan Nasterlack, Siegfried Ehlert, Tobias Meier, Gregor Sauerzapf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.