Putting it in gradle.properties works. For some reason I hadn't thought of trying that. Thanks!
On Tue, Feb 8, 2011 at 10:00 AM, Peter Niederwieser <[email protected]>wrote: > > The buildscript section is essentially a separate script that gets > evaluated > before the build script. And it has to, because it provides critical > information (like the class path) required for evaluating the build script. > It follows that the build script section can't see variables defined in the > build script. Defining the variable in the buildscript section or in > gradle.properties might work, but I haven't tried. If it doesn't work, and > you think it is essential to have a way to share variables between > buildscript section and build script, please create an issue. > > -- > 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/Buildscript-dependency-version-substitution-tp3375947p3376025.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 > > >
