I'm using the application plugin to create a distributable zip. Looking at the scripts that it generates the initial classpath specifies each file in the lib folder. I'd like to give my users the option of adding additional libraries to the lib folder and have the script pick those up.
Is there a way to tell the application plugin to pull in all jar files in the lib folder and not just those specified as dependencies in the Gradle build file?
I figured out from the docs (after much trial and error) that I can do the following:
startScripts {
classpath = files('$APP_HOME/lib/*')
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With