Following the user guide here is my attempt to do the above, which does not
really work:
repositories {
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'theRepo'
addIvyPattern
"http://our.www.server/librepo/[module]/[revision]/[artifact].[ext]"
addArtifactPattern
"http://our.www.server/librepo/[module]/[revision]/[artifact].[ext]"
descriptor = 'lib repo'
checkmodified = true
}
}
dependencies {
compile module("rio:rio:4.0-M2") {
dependency ("rio:boot:4.0-M2")
dependency ("rio:cybernode:4.0-M2")
dependency ("rio:classdepandjar:4.0-M2")
dependency ("groovy:org.groovy:1.6-RC-1")
dependency ("commons-collections:commons-collections:")
}
The www server's dir structure:
<www_root>/
rio/4.0-M2/
rio.jar
...
groovy/1.6-RC-1/groovy-all-1.6-RC-1.jar
....
Executing the build script results in a gradle's cache that contains
only rio/rio/rio-4.0-M2.jar (and some descriptor files), so the other jars
are not downloaded and the only one is renamed.
URLResolver (and its supers) has little or nothing javadoc to explain
addIvyPattern and addArtifactPattern so I am still looking for info what
strings to pass to them.
Can someone tell me what do I wrong?
Thank you!
Zsolt
--
View this message in context:
http://old.nabble.com/How-to-define-custom-remote-repo-for-client-dependency--tp27255683p27255683.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email