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 doesn't work with configuration cache in Gradle 8.3-rc-1 #437

Closed
NikolayMetchev opened this issue Jul 26, 2023 · 4 comments
Closed
Assignees
Labels
Bug Bug issue type S: postponed Status: work on the issue is not in the short term plans

Comments

@NikolayMetchev
Copy link

Describe the bug
When running with gradle 8.3-rc-1 configuration cache breaks.

Errors

Execution optimizations have been disabled for task ':services:pes:pes-admin-service:test' to ensure correctness due to the following reasons:
  - Type 'org.gradle.api.tasks.testing.Test' property 'jvmArgumentProviders' with nested type 'kotlinx.kover.gradle.plugin.appliers.JvmTestTaskArgumentProvider' is not supported. Reason: Nested types are expected to either declare some annotated properties or some behaviour that requires capturing the type as input. For more information, please refer to https://docs.gradle.org/8.3-rc-1/userguide/validation_problems.html#unsupported_nested_type in the Gradle documentation.
  - Type 'org.gradle.api.tasks.testing.Test' property 'toolVariant' with nested type 'kotlinx.kover.gradle.plugin.tools.KoverToolDefaultVariant' is not supported. Reason: Nested types are expected to either declare some annotated properties or some behaviour that requires capturing the type as input. For more information, please refer to https://docs.gradle.org/8.3-rc-1/userguide/validation_problems.html#unsupported_nested_type in the Gradle documentation.

Expected behavior
Configuration cache to continue working

Reproducer

Reports
If applicable, report files or screenshots.

Environment

  • Kover Gradle Plugin version: 0.7.2
  • Gradle version: 8.3-rc-1
  • Kotlin project type: Kotlin/JVM
  • Coverage Toolset default
  • Other context important for this bug: Mac OS
@NikolayMetchev NikolayMetchev added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Jul 26, 2023
@shanshin shanshin added S: postponed Status: work on the issue is not in the short term plans and removed S: untriaged Status: issue reported but unprocessed labels Jul 26, 2023
@shanshin shanshin added S: in progress Status: implementing or design in process S: postponed Status: work on the issue is not in the short term plans and removed S: postponed Status: work on the issue is not in the short term plans S: in progress Status: implementing or design in process labels Aug 3, 2023
@shanshin
Copy link
Collaborator

shanshin commented Aug 3, 2023

Relates gradle/gradle#26018.
Expecting a fix on the Gradle side.

@marukami
Copy link

Seems a fix was merged gradle/gradle#26034.
When I tried 8.3-20230808000007+0000 it seem to fix the issue for me at least.

@NikolayMetchev
Copy link
Author

I tried with RC4 and it worked

@shanshin
Copy link
Collaborator

I confirm, the warning has disappeared in 8.3-rc-4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug issue type S: postponed Status: work on the issue is not in the short term plans
Projects
None yet
Development

No branches or pull requests

3 participants