Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kover 0.7.5 breaks configuration cache #513

Closed
kenyee opened this issue Nov 28, 2023 · 2 comments · Fixed by #538
Closed

Kover 0.7.5 breaks configuration cache #513

kenyee opened this issue Nov 28, 2023 · 2 comments · Fixed by #538
Assignees
Labels
Bug Bug issue type S: ready for release Status: merged in the main branch

Comments

@kenyee
Copy link

kenyee commented Nov 28, 2023

Describe the bug
Upgraded from 0.7.0 to 0.7.5 and now I need to run Kover with --no-configuration-cache

Errors
Gradle fails with this warning:

10:53:42 3 problems were found storing the configuration cache, 1 of which seems unique.
10:53:42 - Plugin 'org.jetbrains.kotlinx.kover': registration of listener on 'Gradle.addListener' is unsupported

Expected behavior
Kover should work with Gradle's configuration cache

Reproducer
Add to multi-module project. Enable gradle configuration cache. Try running koverHtmlReport.
Also found out that Kover 0.7.4 does not have problems w/ the configuration cache so we'll be sticking w/ this version for now.

Environment

  • Kover Gradle Plugin version: 0.7.5
  • Gradle version: 8.0.2
  • Kotlin project type: Kotlin/JVM
  • Coverage Toolset (if customized in build script): Kover
@kenyee kenyee added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Nov 28, 2023
@shanshin shanshin added S: in progress Status: implementing or design in process and removed S: untriaged Status: issue reported but unprocessed labels Nov 28, 2023
@shanshin
Copy link
Collaborator

shanshin commented Nov 28, 2023

Thanks for the report, you can use the version 0.7.4 for now, while we find a replacement listener for checking dependencies.

shanshin added a commit that referenced this issue Feb 14, 2024
Usage of DependencyResolutionListener is incompatible with the configuration cache, therefore, a quick solution is to remove the listener.
In the future, checking for apply of the Kover Gradle Plugin in dependencies must be done in a different way. See #537

Fixes #513
shanshin added a commit that referenced this issue Feb 14, 2024
Usage of DependencyResolutionListener is incompatible with the configuration cache, therefore, a quick solution is to remove the listener.
In the future, checking for apply of the Kover Gradle Plugin in dependencies must be done in a different way. See #537

Fixes #513
shanshin added a commit that referenced this issue Feb 15, 2024
Usage of DependencyResolutionListener is incompatible with the configuration cache, therefore, a quick solution is to remove the listener.
In the future, checking for apply of the Kover Gradle Plugin in dependencies must be done in a different way. See #537

Fixes #513
PR #538
@shanshin shanshin reopened this Feb 15, 2024
@shanshin shanshin added S: ready for release Status: merged in the main branch and removed S: in progress Status: implementing or design in process labels Feb 15, 2024
@shanshin
Copy link
Collaborator

Fixed in 0.7.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug issue type S: ready for release Status: merged in the main branch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants