T - type with which the action executespublic class CacheableAction<T>
extends java.lang.Object
implements org.gradle.api.Action<T>
The delegate action this wraps is intended to be a lambda.
In Gradle versions less than 5.0, the cache key for an action is computed by
calling getClass().getName() on the action. If the action is a lambda,
this is unstable, such as com.linkedin.MyCustomPlugin$$Lambda$188/376495921.
The JVM is adding to the end of the autogenerated class for the lambda a hash
code value.
In Gradle 5.0, tasks with lambdas in doFirst and doLast blocks
will cause the task to no longer participate in up-to-date checks or caching
at all.
| Constructor and Description |
|---|
CacheableAction(org.gradle.api.Action<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(T t) |