vanniktech / gradle-android-junit-jacoco-plugin

Gradle plugin that generates JaCoCo reports from an Android Gradle Project
http://vanniktech.com
Apache License 2.0
400 stars 76 forks source link

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

Open OrangeDog opened 3 years ago

OrangeDog commented 3 years ago

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 commented 3 years ago

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

vanniktech commented 3 years ago

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