From d7109121bd87422b6e9f4e198603d0d1eb73d0cb Mon Sep 17 00:00:00 2001 From: Ivan Dugalic Date: Mon, 27 May 2024 21:17:18 +0200 Subject: [PATCH] fixing gradle build --- application-arrow/build.gradle.kts | 6 ++++++ application-vanilla/build.gradle.kts | 4 ++++ application/build.gradle.kts | 5 +++++ domain/build.gradle.kts | 4 ++++ 4 files changed, 19 insertions(+) diff --git a/application-arrow/build.gradle.kts b/application-arrow/build.gradle.kts index 0cd1983..445b1a2 100644 --- a/application-arrow/build.gradle.kts +++ b/application-arrow/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + @Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369 plugins { id(libs.plugins.kotlin.multiplatform.get().pluginId) @@ -74,11 +76,15 @@ kotlin { val signingTasks = tasks.withType() val testTasks = tasks.withType() + val compileKotlinTasks = tasks.withType() // Kotlin compile tasks + tasks.withType().configureEach { dependsOn(signingTasks) } + signingTasks.configureEach { + dependsOn(compileKotlinTasks) dependsOn(testTasks) } diff --git a/application-vanilla/build.gradle.kts b/application-vanilla/build.gradle.kts index 5c1e1fc..50b755c 100644 --- a/application-vanilla/build.gradle.kts +++ b/application-vanilla/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + @Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369 plugins { id(libs.plugins.kotlin.multiplatform.get().pluginId) @@ -74,11 +76,13 @@ kotlin { val signingTasks = tasks.withType() val testTasks = tasks.withType() + val compileKotlinTasks = tasks.withType() tasks.withType().configureEach { dependsOn(signingTasks) } signingTasks.configureEach { + dependsOn(compileKotlinTasks) dependsOn(testTasks) } diff --git a/application/build.gradle.kts b/application/build.gradle.kts index f780722..cfd4300 100644 --- a/application/build.gradle.kts +++ b/application/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + @Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369 plugins { id(libs.plugins.kotlin.multiplatform.get().pluginId) @@ -61,11 +63,14 @@ kotlin { val signingTasks = tasks.withType() val testTasks = tasks.withType() + val compileKotlinTasks = tasks.withType() tasks.withType().configureEach { dependsOn(signingTasks) } + signingTasks.configureEach { + dependsOn(compileKotlinTasks) dependsOn(testTasks) } diff --git a/domain/build.gradle.kts b/domain/build.gradle.kts index a4cf2f9..24e2590 100644 --- a/domain/build.gradle.kts +++ b/domain/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + @Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369 plugins { id(libs.plugins.kotlin.multiplatform.get().pluginId) @@ -72,11 +74,13 @@ kotlin { val signingTasks = tasks.withType() val testTasks = tasks.withType() + val compileKotlinTasks = tasks.withType() // Kotlin compile tasks tasks.withType().configureEach { dependsOn(signingTasks) } signingTasks.configureEach { + dependsOn(compileKotlinTasks) dependsOn(testTasks) }