https://kotlinlang.org logo
#test
Title
c

Carter

10/29/2021, 2:32 PM
I’m testing out Kover with a Kotlin Multiplatform project with multiple modules. I made these changes:
Copy code
settings.gradle.kts:
pluginManagement {
    plugins {
        id("org.jetbrains.kotlinx.kover") version ("0.3.0") apply (false)
    }
}
submodule/build.gradle.kts:
Copy code
plugins {
    id("org.jetbrains.kotlinx.kover")
}
The build fails with a set of odd exceptions, which I’ll include in a thread. Does anyone have Kover working yet?
Copy code
Failed building KotlinMPPGradleModel
org.gradle.internal.exceptions.DefaultMultiCauseException: Could not resolve all files for configuration ':submodule:kotlinCompilerPluginClasspathJvmMain'.
...
Cause 1: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.jetbrains.kotlin:kotlin-serialization:1.5.31.
Searched in the following locations:
  - <https://packages.jetbrains.team/maven/p/ij/intellij-dependencies/org/jetbrains/kotlin/kotlin-serialization/1.5.31/kotlin-serialization-1.5.31.pom>
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
    project :submodule
Cause 2: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31.
Searched in the following locations:
  - <https://packages.jetbrains.team/maven/p/ij/intellij-dependencies/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.5.31/kotlin-scripting-compiler-embeddable-1.5.31.pom>
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
    project :submodule
a

Astronaut4449

11/01/2021, 6:44 AM
#gradle
Are you missing the Kotlin plugin?
c

Carter

11/01/2021, 10:43 AM
No.
It’s a fully functional Kotlin multiplatform submodule.
j

Javier

11/04/2021, 3:44 PM
0.4.0 has the same issue
28 Views