Kotlin / kotlinx-kover

Apache License 2.0
1.37k stars 53 forks source link

Fixed reusing of configuration cache #648

Closed shanshin closed 5 months ago

shanshin commented 5 months ago

Due to the fact that a file was used as task input, it was placed in the configuration cache as entry, and changing this file causes the cache invalidation.

Problem in line localArtifact.set(variant.artifactGenTask.flatMap { task -> task.artifactFile }). flatMap function behaves strangely enough with the configuration cache, see also https://github.com/gradle/gradle/issues/25645

Fixes #646