We have a Java webstart application and we want to deploy / copy all third-party libraries to lib / ext / and all our project jar files in lib / after the project was created using Gradle.
Using this answer on a previous question, I was able to almost accomplish this, except that my shared project libraries are copied to both lib / and lib / ext /. However, they should only be copied to lib /.
Now I'm looking for a way to exclude all shared project libraries from this task:
task copyDeps(type: Copy) {
from(subprojects.configurations.runtime)
into project.file('lib/ext')
}
I tried to add something like exclude (subprojects.jar), but I don’t know how I can get all the subproject banks in the parameter that exclude () could pass.
How can i do this? I am also open to other suggestions on how to accomplish the basic task of copying libraries to the above folders.
source
share