HI, I’ve just upgraded to gradle-1.1 as I wanted to use the new feature ‘Publishing SHA1 checksums to Ivy repositories’ which is mentioned in the release notes “Gradle will now automatically generate and publish SHA1 checksum files when publishing to an Ivy repository”
We currently use an SshResolver to retrieve and publish to our Ivy Repository, however the checksum files aren’t getting uploaded. The checksum files are uploaded if I test with a local filesystem repository and use the standard ‘ivy’ syntax to reference the repository but not with the SshResolver.
Is this a bug or a known limitation? Any suggestions for a workaround?
uploadArchives {
repositories {
//checksum files don't get uploaded using an SshResolver
//
add(new org.apache.ivy.plugins.resolver.SshResolver()) {
//
name = 'ivy_repo'
//
user = 'orchard'
//
userPassword = 'xxxxx'
//
addIvyPattern
"/uwm/ivy-repo/[organisation]/[module]/ivys/ivy-[revision].xml"
//
addArtifactPattern "/uwm/ivy-repo/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"
//
host = "junior"
//
}
//cheksum files are uploaded using the local file system
ivy {
url "F:/ivy-repo-local/"
layout 'pattern', {
artifact "[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"
ivy "[organisation]/[module]/ivys/ivy-[revision].xml"
}
}
}
}
Thanks. Richard.