The `buildscript` closure is magic (out of necessity). It behaves like a separate script that gets evaluated before the rest of the build script even gets compiled. This explains why you can't access `generalPass` and `generalUser` from within the closure.
I think you could turn things around and move all the code into the `buildscript` closure. Then you should be able to access `generalPass` and `generalUser` from outside the closure with `buildscript.generalPass` and `buildscript.generalUser`. -- Peter Niederwieser Principal Engineer, Gradleware http://gradleware.com Creator, Spock Framework http://spockframework.org Twitter: @pniederw -- View this message in context: http://gradle.1045684.n5.nabble.com/Can-t-acces-to-project-properties-from-buildscript-closure-tp5432681p5433044.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
