[stdlib-mpp] Suppress warnings to please the Kotlin compiler in Gradle DSL
KT-56106
This commit is contained in:
committed by
Space Team
parent
b3707807b6
commit
8e78a433e7
@@ -1,3 +1,4 @@
|
|||||||
|
@file:Suppress("UNUSED_VARIABLE", "NAME_SHADOWING")
|
||||||
import org.gradle.api.internal.component.SoftwareComponentInternal
|
import org.gradle.api.internal.component.SoftwareComponentInternal
|
||||||
import org.gradle.api.internal.component.UsageContext
|
import org.gradle.api.internal.component.UsageContext
|
||||||
import java.nio.file.*
|
import java.nio.file.*
|
||||||
@@ -158,6 +159,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
jsV1Target = js("jsV1", LEGACY) {
|
jsV1Target = js("jsV1", LEGACY) {
|
||||||
nodejs {
|
nodejs {
|
||||||
testTask {
|
testTask {
|
||||||
@@ -209,6 +211,7 @@ kotlin {
|
|||||||
browser {}
|
browser {}
|
||||||
}
|
}
|
||||||
nodejs {
|
nodejs {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
testTask {
|
testTask {
|
||||||
useMocha {
|
useMocha {
|
||||||
timeout = "10s"
|
timeout = "10s"
|
||||||
@@ -523,6 +526,7 @@ tasks {
|
|||||||
|
|
||||||
val sourceMapFile = file(jsOutputMapFileName)
|
val sourceMapFile = file(jsOutputMapFileName)
|
||||||
val jsOutputMetaFile = file(jsOutputMetaFileName)
|
val jsOutputMetaFile = file(jsOutputMetaFileName)
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
val compileMetaFile = file(compileKotlinJsV1.outputFileProperty.get().path.replace(Regex("\\.js$"), ".meta.js"))
|
val compileMetaFile = file(compileKotlinJsV1.outputFileProperty.get().path.replace(Regex("\\.js$"), ".meta.js"))
|
||||||
val mainJsOutputDir = compileKotlinJsV1.destinationDirectory
|
val mainJsOutputDir = compileKotlinJsV1.destinationDirectory
|
||||||
val sourceMapSourcesBaseDirs = listOf(mainJsOutputDir.get(), "${jsCommonDir}/runtime", jsV1Dir, rootDir).map { File(it.toString()) }
|
val sourceMapSourcesBaseDirs = listOf(mainJsOutputDir.get(), "${jsCommonDir}/runtime", jsV1Dir, rootDir).map { File(it.toString()) }
|
||||||
|
|||||||
Reference in New Issue
Block a user