A question about Ivy descriptors.

I use Gradle to upload to an Artifactory repository using:

  uploadArchives {
    repositories {
      mavenRepo urls: "http://server/artifactory/libs-releases-local";
    }
  }

I don't use the Maven plugin so instead of POMs I end up with Ivy files
which get uploaded, such as:

 
http://server/artifactory/libs-releases-local/com/example/thing/01.00.04/ivy-01.00.04.xml

When satisfying dependencies I then use:

  repositories { mavenRepo urls: "http://server/artifactory/libs-releases"; }

Gradle can't find the POM, so it just downloads the Jar - it doesn't attempt
to download the ivy-01.00.04.xml file, so it doesn't pick up transitive
runtime dependencies etc.

I then tried using 

  repositories {
      add(new org.apache.ivy.plugins.resolver.URLResolver()) {
        name = 'Repo'
        addIvyPattern
'http://server/artifactory/libs-releases/([organization]/)[module]/([revision]/)[artifact](-[revision])(-[classifier]).[ext]'
        addArtifactPattern 'http://.......'
  }

(as in example 32.27 of the user guide).

But that doesn't work if the organisation name includes a dot - because the
upload will have translated that into a "/".

I feel I'm missing something obvious, but I can't see what!
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Repository-Resolvers-to-download-ivy-xml-tp3340448p3340448.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


Reply via email to