How to access project.ext variables from within buildscript section

project.ext {
 jaxWsPluginVersion = "1.0-SNAPSHOT"
}
  buildscript {
 repositories {
  mavenCentral()
  mavenLocal()
 }
 dependencies {
  classpath(
    [group: "name.abhijitsarkar.webservices.jaxws.tools", name: "gradle-jaxws-plugin", version: "1.0-SNAPSHOT"]
    )
 }
}

What expression can I use to get jaxWsPluginVersion within buildscript?

No one?

It’s impossible, because the ‘buildscript’ block gets evaluated before the rest of the build script. You can access an extra property declared within ‘buildscript’ from the rest of the build script, though.

1 Like

Thanks Peter.