Package org.gradle.api.invocation
Interface GradleLifecycle
-
@Incubating public interface GradleLifecycle
Gradle lifecycle callbacks compatible withConfiguration CacheandIsolated Projects.- Since:
- 8.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterProject(IsolatedAction<? super Project> action)Adds anisolated actionto be called immediately after a project is evaluated.voidbeforeProject(IsolatedAction<? super Project> action)Adds anisolated actionto be called immediately before a project is evaluated.
-
-
-
Method Detail
-
beforeProject
@Incubating void beforeProject(IsolatedAction<? super Project> action)
Adds anisolated actionto be called immediately before a project is evaluated. Any extensions added to theProjectmodel will be available to build scripts.- Parameters:
action- The action to execute.- Since:
- 8.8
- See Also:
for the requirements to isolated actions
-
afterProject
@Incubating void afterProject(IsolatedAction<? super Project> action)
Adds anisolated actionto be called immediately after a project is evaluated.- Parameters:
action- The action to execute.- Since:
- 8.8
- See Also:
for the requirements to isolated actions
-
-