gradle-dependency-lock-plugin icon indicating copy to clipboard operation
gradle-dependency-lock-plugin copied to clipboard

Plugins should not use Gradle.buildFinished

Open abstratt opened this issue 1 year ago • 0 comments

This was detected by Gradle's own smoke tests:

https://github.com/nebula-plugins/gradle-dependency-lock-plugin/blob/d9c5ceefe67f2b94ccb546f7b75320c29efe72a0/src/main/kotlin/nebula/plugin/dependencyverifier/DependencyResolutionVerifier.kt#L76

Gradle is in the process of deprecating Gradle.buildFinished and other build scope listeners (such as TaskGraphExecution.addTaskExecutionListener) starting in Gradle 8.10 (currently, it is only reported as a problem when configuration cache is enabled).

Instead of using Gradle.buildFinished, plugins should use "always" flow actions.

abstratt avatar Jul 24 '24 12:07 abstratt