If I try to run a Groovy script I am unable to pull in a newer version of picocli via @Grab:
Depending on the Groovy version, this prints
So the @Grab('info.picocli:picocli-groovy:4.0.0-beta-1b') is not honoured.
This is because the groovy.ui.GroovyMain class, which executes Groovy scripts, itself uses picocli to parse the command line parameters. Unfortunately, this means that Groovy script authors cannot control the picocli version used by their scripts.
Is there anything we can do to improve this?