File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ sourceSets {
21
21
22
22
dependencies {
23
23
implementation(gradleApi())
24
+ // exclude transitive dependency on stdlib, the Gradle version should be used
25
+ compileOnly(kotlin(" stdlib" ))
24
26
25
27
compileOnly(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" )
26
28
compileOnly(" com.android.tools.build:gradle:4.2.2" )
@@ -32,7 +34,6 @@ dependencies {
32
34
" functionalTestCompileOnly" (" org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" )
33
35
" functionalTestCompileOnly" (" org.jetbrains.kotlin:kotlin-compiler-embeddable:1.6.10" )
34
36
" functionalTestCompileOnly" (" org.jetbrains.kotlin:kotlin-compiler-runner:1.6.10" )
35
-
36
37
}
37
38
38
39
java {
@@ -67,12 +68,13 @@ tasks.check { dependsOn("functionalTest") }
67
68
68
69
tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > ().configureEach {
69
70
kotlinOptions {
70
- languageVersion = " 1.5"
71
-
72
71
allWarningsAsErrors = true
73
- // Suppress the warning about kotlin-reflect 1.3 and kotlin-stdlib 1.4 in the classpath.
74
- // It's incorrect in this case because we're limiting API version to 1.3 anyway.
75
- freeCompilerArgs = freeCompilerArgs + " -Xskip-runtime-version-check"
72
+
73
+ // Kover works with the stdlib of at least version `1.4.x`
74
+ languageVersion = " 1.4"
75
+ apiVersion = " 1.4"
76
+ // Kotlin compiler 1.6 issues a warning if `languageVersion` or `apiVersion` 1.4 is used - suppress it
77
+ freeCompilerArgs = freeCompilerArgs + " -Xsuppress-version-warnings"
76
78
}
77
79
}
78
80
You can’t perform that action at this time.
0 commit comments