java - write a gradle script that saves all the dependency into the ${projectDir}/lib folder -


so have gradle script gets dependencies following repository

repositories {     maven { url 'http://repository.paychex.com:8081/artifactory/repo1-cache' }              ivy   { url 'http://repository.paychex.com:8081/artifactory/repo1 cache'              layout 'pattern', {               artifact '[organization]/[module]/[revision]/[type]/[module]-[revision].jar'              }           } mavenlocal()  } 

so when run customized gradle task wrote

task showmecache << {   configurations.compile.each { println } } 

it show jars being saved locally on

c:\users\administrator.gradle\caches\modules-2\files-2.1***

i want write gradle task put dependencies given project ${projectdir}/lib folder instead of default location provided gradle. appreciated. thanks

you can write copy task purpose:

task copylibs(type: copy) {     configurations.compile     'lib' } 

keep in mind still download , use resolved dependencies gradle cache.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -