Why not simply:
if (target == target.rootProject) {
target.versionStamp = ...
println "Nexus build plugin version $target.versionStamp"
}
Haven't tried this, but can't see anything wrong with it.
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/plugin-initialization-in-a-multiproject-build-tp3384288p3384329.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