Disable yarn and npm tasks from the build when tests are not active

Kotlin build shouldn't depend on npm during while deploy artefacts tasks

^KTI-887 Fixed
^KT-53687 Related
This commit is contained in:
Nikolay Krasko
2022-08-05 12:30:14 +02:00
committed by teamcity
parent db1bd4f232
commit 01f567a16d
8 changed files with 136 additions and 1 deletions
@@ -4,6 +4,8 @@ plugins {
kotlin("multiplatform")
}
suppressYarnAndNpmForAssemble()
val commonMainSources by task<Sync> {
from(
"$rootDir/libraries/kotlin.test/common/src/main",
@@ -35,6 +35,8 @@ kotlin {
}
}
suppressYarnAndNpmForAssemble()
tasks.withType<KotlinCompile<*>>().configureEach {
kotlinOptions.freeCompilerArgs += listOf(
"-Xallow-kotlin-package",