Slackbot
07/27/2022, 12:25 PMVampire
07/27/2022, 1:36 PMJavaExec
task should do.Vampire
07/27/2022, 1:37 PMBig Chungus
07/27/2022, 1:38 PMBig Chungus
07/27/2022, 1:39 PMBig Chungus
07/27/2022, 1:40 PMVampire
07/27/2022, 1:48 PMapplication
plugin.
It would download the dependencies, put start scripts and so on.
You just also define the "global" place where it should be installed and maybe an executable directory that then already is in the path.
But other than that at least I'm not aware of such a tool,
especially as it is quite unusual to publish executable libraries
to a Maven repository as they are more meant for libraries.
Another option would be Kotlin *.main.kts
scripts.
As any such tool that is not Gradle would probably need some initial installation,
It would be Kotlin that needs to be installed.
In the *.main.kts
script you can declare your dependencies and invoke the main
method.
So the "installation" would be to copy the script, change the dependency, and change the main class basically.Big Chungus
07/27/2022, 1:52 PMBig Chungus
07/27/2022, 1:53 PMBig Chungus
07/27/2022, 1:54 PMBig Chungus
07/27/2022, 1:55 PMBig Chungus
07/27/2022, 1:56 PMBig Chungus
07/27/2022, 1:56 PMMartin
07/27/2022, 5:12 PMMartin
07/27/2022, 5:13 PMBig Chungus
07/27/2022, 5:16 PM*.main.kts
scripts from the url. The idea is to have something like ktx install org.company:exe-jar:1.0.0
and then have exe-jar
command available on your PATHBig Chungus
07/27/2022, 5:17 PMdnf install curl
Vampire
07/27/2022, 5:18 PMBig Chungus
07/27/2022, 5:19 PMBig Chungus
07/27/2022, 5:20 PMMartin
07/28/2022, 8:38 AM