Publishing Ivy artifacts into non standard repo structure (new plugin)


(Nadav) #1

Hello,

I’m trying to use the new ivy publishing plugin and have the artifacts deployed with non-default ivyPattern and artifactPattern. I tried doing it as specified below, but artifacts were still published in default locations. Any help is greatly appreciated.

Thanks! Nadav

publishing {
    publications {
        local(IvyPublication) {
            from components.java
        }
    }
    repositories {
        ivy {
            url "file://$buildDir/repo" // change to point to your repo, e.g. http://my.org/repo
            ivyPattern("file://$buildDir/repo/[organisation]/[module]/ivys/ivy-[revision].xml")
            artifactPattern("file://$buildDir/repo/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]")
        }
    }
}

(Nadav) #2

Just realized that when I remove the “url” line it works as expected… apologies!