Description
A simple and straightforward way to package java applications is just as a folder of jars files.
Given that all jars are in a folder jars
the application can be executed via java --class-path "jars/*" my.MainClass
.
Compared to any other method of packaging (bootstrap scripts, assembly (fat) jars) this does not require modifying dependency jars at all, and generally has no potential edge cases that could cause trouble.
I would expect the command to be somthing along the lines of scala-cli package --folder-of-jars --output "jars" .
similar to other package commands. But I have no particular opinion about the concrete wording of --folder-of-jars
.
Note that there is some potential relation to my other comment on various packaging flags #1783 (comment), but I think this is different from packaging a single jar.