invoke
Enables function invocation syntax on Action references.
Configures the published artifacts for this project.
Since
5.1
Enables function invocation syntax on Callable references.
See also
Allows the container to be configured via an augmented DSL.
Return
The container.
Since
8.4
Parameters
The expression to configure this container with
Modifies a dependency to select the variant of the given module.
Since
8.0
See also
Add a dependency.
Since
8.6
Parameters
dependency to add
See also
Add a dependency.
Since
8.6
Parameters
dependency to add
an action to configure the dependency
See also
Add a dependency.
Since
8.6
Parameters
files to add as a dependency
Add a dependency.
Since
8.6
Parameters
files to add as a dependency
an action to configure the dependency
Add a dependency.
Since
8.6
Parameters
external module to add as a dependency
Add a dependency.
Since
8.6
Parameters
external module to add as a dependency
an action to configure the dependency
Add a dependency.
Since
8.6
Parameters
dependency to add
Add a dependency.
Since
8.6
Parameters
dependency to add
an action to configure the dependency
Add a dependency constraint.
Since
8.7
Parameters
dependency constraint to add
Add a dependency constraint.
Since
8.7
Parameters
dependency constraint to add
an action to configure the dependency constraint
Configures the dependency constraints.
Since
5.0
Returns a property delegate provider that will initialize the extra property to the value provided by initialValueProvider.
Usage: val answer by extra { 42 }
Returns a property delegate provider that will initialize the extra property to the given initialValue.
Usage: val answer by extra(42)
Enables function invocation syntax on Closure references.
Allows the container to be configured via an augmented DSL.
Return
The container.
Parameters
The expression to configure this container with
Allows a NamedDomainObjectProvider to be configured via invocation syntax.
val rebuild by tasks.registering
rebuild { // rebuild.configure {
dependsOn("clean")
}
Enables function invocation syntax on Spec instances.
See also
Allows a TaskContainer to be configured via an augmented DSL that includes a shorthand string notation for configuring existing tasks.
tasks {
"build" {
dependsOn("clean")
}
"clean"(Delete::class) {
delete("./build")
}
}
Return
The given TaskContainer.
Parameters
The expression to configure this TaskContainer with.