public class LazyConfiguration
extends java.lang.Object
lazyConfiguration(Task, Runnable).
See also DeferredConfiguration.| Constructor and Description |
|---|
LazyConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static void |
forceConfiguration(org.gradle.api.Task task)
Forces lazy configuration to be triggered for given task
|
static void |
lazyConfiguration(org.gradle.api.Task task,
java.lang.Runnable configuration)
Performs configuration only if given task is in the task execution graph.
|
public static void forceConfiguration(org.gradle.api.Task task)
public static void lazyConfiguration(org.gradle.api.Task task,
java.lang.Runnable configuration)
Lazy configuration action should not apply other plugins, add tasks or add new task relationships (like dependsOn). It will not work because Gradle does not allow adding tasks after the task graph has be already created.