Gradle - Get last cached input contents for Delta Analysis

Hi,

I am writing Plugin which get a json as input and provides html as output.
I need to compute delta of last cached input json and new input json for a Task.
Is there any way to get Last cached input as variable inside the Task for comparison purpose ?
Also, please help me with any plugin code which has Cache file analysis.

Thanks

I need to compute delta of last cached input json and new input json for a Task.

For what purpose do you need to have the delta between those versions? Up-to-date checking is already built-into the task. I’d assume you are looking for some custom functionality?

Is there any way to get Last cached input as variable inside the Task for comparison purpose ?

At the moment there isn’t a way to retrieve that information.

Hi Benjamin,

I need to perform operations on Delta alone.
the Up-to-Date checking does check for entire file/checksum. I want to do delta comparison on Input Data and Run task only on the delta part.