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

Compile error in version 0.7.1 #415

Closed
LouisPennachio opened this issue Jun 23, 2023 · 3 comments · Fixed by #432
Closed

Compile error in version 0.7.1 #415

LouisPennachio opened this issue Jun 23, 2023 · 3 comments · Fixed by #432
Assignees
Labels
Bug Bug issue type S: ready for release Status: merged in the main branch

Comments

@LouisPennachio
Copy link

LouisPennachio commented Jun 23, 2023

Describe the bug
I'm using the Kover Gradle plugin in my buildSrc folder :

dependencies {
    implementation("org.jetbrains.kotlinx", "kover-gradle-plugin", "0.7.1")
}

It works fine with version 0.7.0, but I get a compile error with version 0.7.1.

Errors

 Class 'kotlinx.kover.api.KoverMergedConfig' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.

Expected behavior
The Gradle task :buildSrc:compileKotlin should not fail.

Reproducer
Including the dependency to Kover Gradle plugin inside the buildSrc folder fails the build.

Reports
N/A

Environment

  • Kover Gradle plugin version: 0.7.1
  • Kotlin Gradle plugin: 1.8.10
  • Gradle version: 7.3.1
  • Kotlin project type: Kotlin/Android
  • Coverage Toolset (if customized in build script): Kover (no extra config)
@LouisPennachio LouisPennachio added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Jun 23, 2023
@LouisPennachio
Copy link
Author

The same issue occurs with version 0.7.2

@shanshin shanshin added S: in progress Status: implementing or design in process and removed S: untriaged Status: issue reported but unprocessed labels Jul 12, 2023
shanshin added a commit that referenced this issue Jul 12, 2023
Fixes #415

`kotlin-dsl` itself specifies the language version to ensure compatibility of the Kotlin DSL API.
Since we ourselves guarantee and test compatibility with previous Gradle versions, we can override language version
The easiest way to do this now is to specify the version in the `afterEvaluate` block
shanshin added a commit that referenced this issue Jul 14, 2023
`kotlin-dsl` itself specifies the language version to ensure compatibility of the Kotlin DSL API.
Since we ourselves guarantee and test compatibility with previous Gradle versions, we can override language version
The easiest way to do this now is to specify the version in the `afterEvaluate` block

Fixes #415

PR #432

Co-authored-by: Leonid Startsev <sandwwraith@users.noreply.github.com>
@shanshin shanshin reopened this Jul 14, 2023
@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 Jul 14, 2023
@shanshin
Copy link
Collaborator

Fixed in 0.7.3

@LouisPennachio
Copy link
Author

Thanks a lot !

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