Gradle
Represents an invocation of Gradle.
You can obtain a Gradle
instance by calling getGradle.
Properties
Functions
Link copied to clipboard
Adds a BuildListener to this Build instance.
Link copied to clipboard
Adds the given listener to this build.
Link copied to clipboard
abstract fun addProjectEvaluationListener(listener: ProjectEvaluationListener): ProjectEvaluationListener
Adds a listener to this build, to receive notifications as projects are evaluated.
Link copied to clipboard
Adds a closure to be called immediately after a project is evaluated.
Adds an action to be called immediately after a project is evaluated.
Link copied to clipboard
Adds an action to execute against all projects of this build.
Link copied to clipboard
Applies the plugin of the given type T. Does nothing if the plugin has already been applied.
Kotlin extension function for org.gradle.api.plugins.PluginAware.apply.
Applies the given plugin or script.
Link copied to clipboard
Adds a closure to be called immediately before a project is evaluated.
Adds an action to be called immediately before a project is evaluated.
Link copied to clipboard
Adds an action to be called before the build settings have been loaded and evaluated.
Link copied to clipboard
Adds a closure to be called when the build is completed.
Adds an action to be called when the build is completed.
Link copied to clipboard
Link copied to clipboard
Returns the Gradle home directory, if any.
Link copied to clipboard
Returns the Gradle user home directory.
Link copied to clipboard
Returns the current Gradle version.
Link copied to clipboard
Returns the included builds for this build.
Link copied to clipboard
Gives access to the new Gradle build lifecycle callbacks.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the root project of this build.
Link copied to clipboard
Returns the build services that are shared by all projects of this build.
Link copied to clipboard
Returns the StartParameter used to start this build.
Link copied to clipboard
Returns the TaskExecutionGraph for this build.
Link copied to clipboard
Returns the included build with the specified name for this build.
Link copied to clipboard
Adds a closure to be called when all projects for the build have been evaluated.
Adds an action to be called when all projects for the build have been evaluated.
Link copied to clipboard
Adds a closure to be called when the projects for the build have been created from the settings.
Adds an action to be called when the projects for the build have been created from the settings.
Link copied to clipboard
Removes the given listener from this build.
Link copied to clipboard
Removes the given listener from this build.
Link copied to clipboard
Adds an action to execute against the root project of this build.
Link copied to clipboard
Adds a closure to be called when the build settings have been loaded and evaluated.
Adds an action to be called when the build settings have been loaded and evaluated.
Link copied to clipboard
Returns the extension of the specified type.
Returns the extension of the specified extensionType.