Skip to content

Commit 02a10a8

Browse files
committed
Suppress K/JS configuration deprecation warnings
Relates to KT-68597, KT-75144
1 parent f2b0258 commit 02a10a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildSrc/src/main/kotlin/Java9Modularity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object Java9Modularity {
3636
val ideaActive = System.getProperty("idea.active") == "true"
3737
if (disableJPMS || ideaActive) return
3838
val kotlin = extensions.findByType<KotlinProjectExtension>() ?: return
39-
val jvmTargets = kotlin.targets.filter { it is KotlinJvmTarget || it is KotlinWithJavaTarget<*, *> }
39+
@Suppress("DEPRECATION", "DEPRECATION_ERROR") val jvmTargets = kotlin.targets.filter { it is KotlinJvmTarget || it is KotlinWithJavaTarget<*, *> }
4040
if (jvmTargets.isEmpty()) {
4141
logger.warn("No Kotlin JVM targets found, can't configure compilation of module-info!")
4242
}
@@ -50,6 +50,7 @@ object Java9Modularity {
5050
}
5151

5252
target.compilations.forEach { compilation ->
53+
@Suppress("DEPRECATION", "DEPRECATION_ERROR")
5354
val compileKotlinTask = compilation.compileKotlinTask as KotlinCompile
5455
val defaultSourceSet = compilation.defaultSourceSet
5556

0 commit comments

Comments
 (0)