Gradle how to copy a dependency inside a war using dependency group, name, version for target location? -


i have configuration dependencies:

configurations {     libsjs }  dependencies {     libsjs "io.deps:artefact1:1.1.1"     libsjs "io.deps:artefact2:1.0.1" } 

during war task want put dependency content (ziptree?) in specific folder:

lib-js/io.deps/artefact1/1.1.1 

i can that?

i guess work.

please go through link. https://discuss.gradle.org/t/download-some-dependencies-and-copy-them-to-a-local-folder/6246.

might fix concern.

can please try this. add below code in build.gradle

 task copyruntimelibs(type: copy) {     "lib1"     configurations.compile    } 

for me worked.all dependent jar compile dependencies copied lib1 folder, once run task.

in case, replace compile libsjs.

task copyruntimelibs(type: copy) {         "lib-js"   //specify required location         configurations.libsjs       } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -