Peter Mandeljc
02/28/2023, 9:49 AMbuildSrc/kover.gradle.kts
. But it seems like my plugin is not recognized:
Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'org.jetbrains.kotlinx.kover'] was not found in any of the following sources:
// kover.gradle.kts
plugins {
id("org.jetbrains.kotlinx.kover")
}
koverMerged {
enable()
}
// build.gradle.kts
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
gradlePluginPortal()
}
mbonnin
02/28/2023, 10:07 AMPeter Mandeljc
02/28/2023, 10:08 AMPlugin requests from precompiled scripts must not include a version number.
mbonnin
02/28/2023, 10:09 AMkover.gradle.kts
? apply()
?Peter Mandeljc
02/28/2023, 10:10 AMmbonnin
02/28/2023, 10:11 AMPeter Mandeljc
02/28/2023, 10:11 AMsrc/main/java
mbonnin
02/28/2023, 10:12 AMkover
plugin as implementation
in buildSrc/build.gradle.kts
Peter Mandeljc
02/28/2023, 10:39 AMbuildSrc/build.gradle.kts
to:
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation("org.jetbrains.kotlinx.kover:0.6.1")
}
But now I'm getting:
Execution failed for task ':buildSrc:generateExternalPluginSpecBuilders'.
> Could not resolve all files for configuration ':buildSrc:compileClasspath'.
> Could not find org.jetbrains.kotlinx.kover:0.6.1:.
Required by:
project :buildSrc
mavenCentral()
is a correct repo for kover, I double checkedAlexander.Likhachev
02/28/2023, 10:43 AMorg.jetbrains.kotlinx.kover
is a plugin ID, but not a maven artifact coordinates declaration. The coordinates are org.jetbrains.kotlinx:kover-gradle-plugin
Peter Mandeljc
02/28/2023, 10:56 AM