api / org.gradle.api / Script / buildscript

buildscript

abstract fun buildscript(configureClosure: Closure<Any>): Unit

Configures the classpath for this script.

The given closure is executed against this script's ScriptHandler. The ScriptHandler is passed to the closure as the closure's delegate.

Parameters

configureClosure - the closure to use to configure the script classpath.