[Build] Fix a bunch of buildscript compilation warnings

#KTI-1221 Fixed
This commit is contained in:
Alexander.Likhachev
2023-05-17 15:57:56 +02:00
committed by Space Team
parent 46e83ef7da
commit a93c49baf1
17 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -28,16 +28,16 @@ kotlin {
}
sourceSets {
val commonMain by getting {
named("commonMain") {
dependencies {
api(project(":kotlin-stdlib-js-ir"))
}
kotlin.srcDir(commonMainSources.get().destinationDir)
}
val commonTest by getting {
named("commonTest") {
kotlin.srcDir(commonTestSources.get().destinationDir)
}
val jsMain by getting {
named("jsMain") {
dependencies {
api(project(":kotlin-stdlib-js-ir"))
}
@@ -38,7 +38,7 @@ kotlin {
}
sourceSets {
val test by getting {
named("test") {
kotlin.srcDir(jsMainSources.get().destinationDir)
}
}
@@ -78,7 +78,7 @@ fun createFrameworkTest(name: String): TaskProvider<NpmTask> {
return tasks.register("test$name", NpmTask::class.java) {
dependsOn(compileTestDevelopmentExecutableKotlinJs, populateNodeModules, "npmInstall")
val testName = name
val lowerName = name.toLowerCase()
val lowerName = name.lowercase()
val tcOutput = project.file("$buildDir/tc-${lowerName}.log")
val stdOutput = "$buildDir/test-${lowerName}.log"
val errOutput = "$buildDir/test-${lowerName}.err.log"
+3 -3
View File
@@ -13,20 +13,20 @@ val commonMainSources by task<Sync> {
}
kotlin {
@OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl::class)
wasm {
nodejs()
}
@Suppress("UNUSED_VARIABLE")
sourceSets {
val commonMain by getting {
named("commonMain") {
dependencies {
api(project(":kotlin-stdlib-wasm"))
}
kotlin.srcDir(commonMainSources.get().destinationDir)
}
val wasmMain by getting {
named("wasmMain") {
dependencies {
api(project(":kotlin-stdlib-wasm"))
}