gradle-android-junit-jacoco-plugin icon indicating copy to clipboard operation
gradle-android-junit-jacoco-plugin copied to clipboard

Task uses this output of task without declaring an explicit or implicit dependency

Open OrangeDog opened this issue 4 years ago • 2 comments
trafficstars

With Gradle 7, this plugin generates a huge number of warnings

> Task :app:jacocoTestReportRelease Execution optimizations have been disabled for task ':app:jacocoTestReportRelease' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: 'myproj\app\build'. Reason: Task ':app:jacocoTestReportRelease' uses this output of task ':app:checkDebugAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.0.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

There are ~50 dependencies like this for each of the plugin's tasks, and they're reported in both directions.

OrangeDog avatar Jun 25 '21 11:06 OrangeDog

Related? https://github.com/gradle/gradle/issues/16927 Is this plugin replaced by a builtin version?

OrangeDog avatar Jun 25 '21 11:06 OrangeDog

I haven't followed recent jacoco changes that were done in Gradle - so I honestly don't know.

vanniktech avatar Jun 27 '21 18:06 vanniktech