coveralls-jacoco-gradle-plugin icon indicating copy to clipboard operation
coveralls-jacoco-gradle-plugin copied to clipboard

Incompatibility with gradle configuration cache

Open Spikhalskiy opened this issue 1 year ago • 3 comments

When attempting to enable gradle configuration cache in a project with this plugin applied, the build fails with

Configuration cache entry discarded with 1 problem.
FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `:coverallsJacoco` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

Gradle Configuration Cache is an experimental feature that is turned off by default, but most major plugins at this moment already support it. It would be great to see Coveralls plugin supporting it too. https://docs.gradle.org/current/userguide/configuration_cache.html

Spikhalskiy avatar Nov 01 '23 15:11 Spikhalskiy

The problem still exists in 1.2.18

Spikhalskiy avatar Jan 09 '24 19:01 Spikhalskiy

Yeah, I was hoping for a reproducible example for this use case to help fix this one.

nbaztec avatar Jan 10 '24 19:01 nbaztec

This issue can be replicated in https://github.com/intellij-dlanguage/intellij-dlanguage by running ./gradlew koverXmlReport coverallsJacoco

SingingBush avatar Aug 15 '24 14:08 SingingBush