The Release Notes at
http://wiki.gradle.org/display/GRADLE/Gradle+1.0-milestone-8+Release+Notes
contain the following example:
signing {
required = { gradle.taskGraph.hasTask("uploadArchives") &&
!version.endsWith("SNAPSHOT") }
}
This caused me quite a bit of confusion since in a multi-module project, the
task contained in taskGraph is something like ':foo:uploadArchives' so the code
above wouldn't work. (On a side note, I use the task uploadPublished instead of
uploadArchives.)
The only way I could find to achieve something like the functionality intended
above was
signing {
required = { gradle.taskGraph.allTasks.any { it instanceof Upload } &&
!version.endsWith("SNAPSHOT") }
}
Or am I missing something and there is a more elegant way?
Thanks for your work!
Cheers,
Joern.
On 14.02.2012, at 03:22, Peter Niederwieser wrote:
> The Gradle team is pleased to announce the release of Gradle 1.0-milestone-8.
>
> This release contains a large number of improvements and bug fixes, plus a
> few new plugins. You can read more in the release notes
> (http://wiki.gradle.org/display/GRADLE/Gradle+1.0-milestone-8+Release+Notes).
>
> Please make sure you read the migration guide
> (http://wiki.gradle.org/display/GRADLE/Gradle+1.0-milestone-8+Migration+Guide)
> to find out about known issues and breaking changes in this release.
>
> Download this release from the usual spot at http://gradle.org/downloads or
> point your wrapper at:
> http://services.gradle.org/distributions/gradle-1.0-milestone-8-bin.zip
>
> Enjoy!
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Gradle-1-0-milestone-8-released-tp5481186p5481186.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
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email