Closed smourapina closed 3 years ago
It's a known issue and being looked at as part of https://github.com/scoverage/gradle-scoverage/issues/150.
I agree it means that Gradle cannot optimise the task, but I think it's not something that prevents the current use of the plugin?
Thanks for the quick feedback @maiflai. Indeed it does not prevent the use of the plugin, but it would be good to fix it!
If it is ok, I will leave this issue open for the time being, as a reference in case other users experience the same.
I don't think this is related to #150.
I opened a PR that should fix this warning.
Much appreciated @eyalroth, thank you!
I have tried this in the meantime, and the change does indeed get rid of the message above for dependency on the :some-module:jar
task.
However, I still have warnings for the following tasks:
:some-module:test
:some-module:acceptanceTest
:some-module:compileAcceptanceTestJava
:some-module:compileAcceptanceTestScala
:some-module:processAcceptanceTestResources
:some-module:reportAcceptanceTestScoverage
From what I understand from the change introduced, these tasks should have been included even before, with the dependency on testTask
, but it does not seem to be the case.
Can you please reopen this and take a look @eyalroth or @maiflai ?
Running
gradle-scoverage
under Gradle 7 (in this case7.1.1.
) results in the following warnings for multiple coverage tasks:Can you please check this issue?