Slowly making progress here. What I want is to be able to upload snapshots to
a maven repository and also releases. So I figured that I needed to create
two custom tasks: "uploadSnapshots" and "uploadReleases".
If I use the standard uploadArchives like below, a jar is uploaded:
uploadArchives {
repositories.mavenDeployer {
repository(url:
"http://myhost:8081/nexus/content/repositories/snapshots") {
authentication(userName: "deployment", password: "xxx")
}
}
}
If I try to create a custom task, it is not:
task uploadSnapshots(dependsOn: build) << {
repositories.mavenDeployer {
repository(url:
"http://myhost:8081/nexus/content/repositories/snapshots") {
authentication(userName: "deployment", password: "xxx")
}
}
}
What is the difference between these two?
--
View this message in context:
http://old.nabble.com/difference-between-uploadArchives-and-custom-task-tp26920056p26920056.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