Hi everyone, I’m working on `OperationCompletionLi...
# configuration-cache
e
Hi everyone, I’m working on
OperationCompletionListener
to replace afterTask for configuration cache compliance. I’m trying to get more information from the
TaskFinishEvent.Descriptor
, however the code below throws exceptions:
Copy code
val desc: TaskOperationDescriptor = event.descriptor
Lifecycle.afterTask("${desc.taskPath} belongs to ${desc.originPlugin ?: "Unknown"}")
Unsupported method: TaskOperationDescriptor.getOriginPlugin().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
The doc denotes
originPlugin
should work since Gradle 5.1, I have tried the latest Gradle 7.6 it still throws the Unsupported method exception. Updates:
dependencies
is not working (same error).