Liked this a lot! What would be different if I instead of a fat jar copy dependencies to a libs folder in target and add classpath entry to the jar's manifest, so I still can run with java -jar. What changes would be required, e.g. in jreleaser.yml?
That is exactly the kind of layout JReleaser calls a Java Binary distribution: a root directory with bin/ scripts and a lib/ folder containing the required JARs. JReleaser documents JAVA_BINARY as a distribution with bin/app, bin/app.bat, and lib/...jar, and it explicitly says all required JARs go in lib. https://jreleaser.org/guide/latest/concepts/distributions/java-binary.html
Let me see if I can cover a variant of this in a later installment! Thanks for the question!
Liked this a lot! What would be different if I instead of a fat jar copy dependencies to a libs folder in target and add classpath entry to the jar's manifest, so I still can run with java -jar. What changes would be required, e.g. in jreleaser.yml?
That is exactly the kind of layout JReleaser calls a Java Binary distribution: a root directory with bin/ scripts and a lib/ folder containing the required JARs. JReleaser documents JAVA_BINARY as a distribution with bin/app, bin/app.bat, and lib/...jar, and it explicitly says all required JARs go in lib. https://jreleaser.org/guide/latest/concepts/distributions/java-binary.html
Let me see if I can cover a variant of this in a later installment! Thanks for the question!