Hello,
I am writing a gradle script that interacts with an ivy repository. The repository uses following patterns to store ivy.xm files and artifacts:
ivy 'http://server.com/artifactory/repo/[organization]/[module]/[revision]/ivy-[revision].xml'
artifact 'http://server.com/artifactory/repo/[organization]/[module]/[revision]/[type]s/[artifact]-[revision](-[classifier]).[ext]'
Where organization uses m2 style directory structure (eg. org/apache/commons). The problem I have is that if I try to use the ‘pattern’ layout my organization resolves using dots (e.g. org.apache.commons), but if I use the ‘maven’ layout I am not allowed to provide a custom artifacts pattern. In essence I would like to be able to do something like this:
repositories {
ivy {
url 'http://server.com/artifactory/repo/'
layout 'maven', {
artifact '[organization]/[module]/[revision]/[type]s/[artifact]-[revision](-[classifier]).[ext]'
}
}
}
This is obviously not possible as I get
Could not find method artifact() for arguments [[organization]/[module]/[revision]/[type]s/[artifact]-[revision](-[classifier]).[ext]]
But is there a workaround that would achieve that effect?
Thanks
Version information
------------------------------------------------------------
Gradle 1.2
------------------------------------------------------------
Gradle build time: Wednesday, September 12, 2012 10:46:02 AM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.6.0_33 (Sun Microsystems Inc. 20.8-b03)
OS: Linux 2.6.34.8-68.fc13.x86_64 amd64