RE: Groovy -jar

2025-02-22 Thread steve.etchelecu
Hi Per, I have had (very) good luck with a slightly different approach. Rather than 'groovy -jar myapp.jar' I went with 'java -jar myapp.jar'. And this had another, somewhat unexpected, benefit. Building my app with shadowJar (thanks to the help I receiv

Groovy -jar

2025-02-22 Thread Per Nyfelt
Hi, I find myself missing  a way to execute groovy jars e.g: `groovy -jar someapp.jar`.  As a workaround i can do something like the following in bash (error handling etc. omitted) #!/usr/bin/env bash # takes a single parameter (the path to the jar file to execute - it assumes the Main-Class