Which method can replace getProject().getGradle().buildFinished()?

Hi there.

I noticed one issue after updating Gradle. I got the next warning:

‘buildFinished(org.gradle.api.Action<? super org.gradle.BuildResult>)’ is deprecated

Unfortunately, I couldn’t find a similar method.

Can you tell me if one of these exists?

Best regards.

It appears there’s no complete solution for this yet, but here’s some more details.