Gretar Arnason wrote:
> 
> Thanks Peter, but doesn't this imply that the rootProject applies the
> plugin?
> Which is not my case, I only apply it on subprojects.
> 

OK, then let's stick to your version:

if (!target.rootProject.hasProperty("versionStamp")) {
  target.rootProject.versionStamp = ...
  println "Nexus build plugin version $target.rootProject.versionStamp"
}

What I don't understand is why you are trying to do this with a task and a
build listener.

-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/plugin-initialization-in-a-multiproject-build-tp3384288p3384470.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


Reply via email to