Skip to content

Commit

Permalink
chore(build): make everything containing compile and kotlin depend on…
Browse files Browse the repository at this point in the history
… createJsEnvHack explicit
  • Loading branch information
Marcel Kesselring authored and Marcel Kesselring committed Oct 23, 2023
1 parent cb088ac commit e2e12d5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import com.android.build.gradle.LibraryExtension
import com.liftric.vault.GetVaultSecretTask
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon
import org.jetbrains.kotlin.gradle.tasks.*

plugins {
kotlin("multiplatform") version libs.versions.kotlin
Expand Down Expand Up @@ -356,10 +355,12 @@ vault {
vaultToken.set(System.getenv("VAULT_TOKEN"))
}
}
afterEvaluate {
tasks.getByName("compileTestKotlinJs").dependsOn("createJsEnvHack")
tasks.getByName("compileDebugUnitTestKotlinAndroid").dependsOn("createJsEnvHack")
tasks.getByName("compileTestKotlinJvm").dependsOn("createJsEnvHack")
tasks.getByName("compileReleaseUnitTestKotlinAndroid").dependsOn("createJsEnvHack")
tasks.getByName("compileTestKotlinIosSimulatorArm64").dependsOn("createJsEnvHack")
tasks {
afterEvaluate {
all {
if(name.contains("compile", true) && name.contains("kotlin", true)) {
dependsOn("createJsEnvHack")
}
}
}
}

0 comments on commit e2e12d5

Please sign in to comment.