Skip to content

Commit 172f6dd

Browse files
committed
Suppress actual/expect classes warning
1 parent 373fc81 commit 172f6dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
import kotlinx.kover.gradle.plugin.dsl.MetricType
7+
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
78
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
89
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
910

@@ -27,11 +28,19 @@ subprojects {
2728
kotlinOptions {
2829
allWarningsAsErrors = true
2930
freeCompilerArgs += "-Xjvm-default=all"
31+
freeCompilerArgs += "-Xexpect-actual-classes"
3032
}
3133
}
3234
tasks.withType<KotlinNativeCompile>().configureEach {
3335
kotlinOptions {
3436
allWarningsAsErrors = true
37+
freeCompilerArgs += "-Xexpect-actual-classes"
38+
}
39+
}
40+
tasks.withType<KotlinJsCompile>().configureEach {
41+
kotlinOptions {
42+
allWarningsAsErrors = true
43+
freeCompilerArgs += "-Xexpect-actual-classes"
3544
}
3645
}
3746
}

0 commit comments

Comments
 (0)