Gradle Application Plugin: Forcing Script to Include lib / * in Classpath

I am using an application plugin to create a zip distribution. Looking at the scripts that it generates, the initial class path indicates each file in the lib folder. I would like to give my users the ability to add additional libraries to the lib folder and select a script.

Is there a way to tell the application plugin to pull out all the jar files in the lib folder, and not just those that are listed as dependencies in the Gradle build file?

+6
source share
1 answer

I understood from the documents (after much trial and error) that I can do the following:

startScripts { classpath = files('$APP_HOME/lib/*') } 
+7
source

Source: https://habr.com/ru/post/913803/


All Articles