Hello All,
I’m using the Java plugin to build an app and I’d like to copy all dependencies and the resultant Jar files to a “lib/” directory for use by some wrapper scripts. I have the following
task install(type: Copy) {
dependsOn build
from configurations.runtime
into "${project.projectDir}/script/lib"
}
however this copies all dependencies except for the app itself. How can I copy the app itself as well? I read that the Java plugin has an “archives” configuration that might have the produced artifact but adding from configurations.archives
does not result in the app artifact being present in the target directory.