[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
@@ -430,7 +430,7 @@ allprojects {
val isReflect = requested.name == "kotlin-reflect" || requested.name == "kotlin-reflect-api"
// More strict check for "compilerModules". We can't apply this check for all modules because it would force to
// exclude kotlin-reflect from transitive dependencies of kotlin-poet, ktor, com.android.tools.build:gradle, etc
if (project.path in (rootProject.extra["compilerModules"] as Array<String>)) {
if (project.path in @Suppress("UNCHECKED_CAST") (rootProject.extra["compilerModules"] as Array<String>)) {
val expectedReflectVersion = commonDependencyVersion("org.jetbrains.kotlin", "kotlin-reflect")
if (isReflect) {
check(requested.version == expectedReflectVersion) {
@@ -934,9 +934,9 @@ gradle.taskGraph.whenReady(checkYarnAndNPMSuppressed)
plugins.withType(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin::class) {
extensions.configure(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension::class.java) {
npmInstallTaskProvider?.configure {
npmInstallTaskProvider.configure {
args += listOf("--network-concurrency", "1", "--mutex", "network")
} ?: error("kotlinNpmInstall task should exist inside NodeJsRootExtension")
}
}
}