« Return to Thread: retrieveLibs command to support switching to flatDir

retrieveLibs command to support switching to flatDir

by Helmut Denk :: Rate this Message:

Reply to Author | View in Thread

hi gradle,

one thing, that could be useful IMO
is a retrieve-command that supports
switching from ivy/maven-repositories
to flatDir.

in ant+ivy it is like this:

*** snip ***
ivy.retrieve.pattern=${lib.dir}/[conf]/[artifact].[ext]

<ivy:retrieve pattern="${ivy.retrieve.pattern}"/> 
*** snap ***


the default-behaviour of a command 'gradle retrieveLibs'
would fetch dependent artefacts into the /lib dir so that
a switch to:

repositories {
    flatDir(dirs: file('lib'))
}  


can be done without manually copying files.

i have such a usecase a second time now.
that's why i think it's worth a note here.

or is there a better/easier way to do this ?

have a successful day

 « Return to Thread: retrieveLibs command to support switching to flatDir