I have a made my first groovy CLI app with picocli. Now, I want it to be available for use without any JVM installed on the client machine, maybe with the use of GraalVM. This is for an opensource project: https://github.com/kchaitanya863/db2csv
You will need to:
args
variable available after static compilation withfinal String[] args = getProperty("args") as String[]
picocli-codegen
module provides a picocli.codegen.aot.graalvm.ReflectionConfigGenerator
tool to generate the configuration file.@Grape
dependencies, you may need to turn off the Grape dependency manager with -Dgroovy.grape.enabled=false
and add all dependencies to the classpath manually insteadCredit: I got most of these tips from this article by Szymon Stepniak