Skip to content

Commit

Permalink
fixing gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
idugalic committed May 27, 2024
1 parent f779be9 commit d710912
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application-arrow/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -74,11 +76,15 @@ kotlin {

val signingTasks = tasks.withType<Sign>()
val testTasks = tasks.withType<AbstractTestTask>()
val compileKotlinTasks = tasks.withType<KotlinCompile>() // Kotlin compile tasks


tasks.withType<AbstractPublishToMaven>().configureEach {
dependsOn(signingTasks)
}

signingTasks.configureEach {
dependsOn(compileKotlinTasks)
dependsOn(testTasks)
}

Expand Down
4 changes: 4 additions & 0 deletions application-vanilla/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -74,11 +76,13 @@ kotlin {

val signingTasks = tasks.withType<Sign>()
val testTasks = tasks.withType<AbstractTestTask>()
val compileKotlinTasks = tasks.withType<KotlinCompile>()

tasks.withType<AbstractPublishToMaven>().configureEach {
dependsOn(signingTasks)
}
signingTasks.configureEach {
dependsOn(compileKotlinTasks)
dependsOn(testTasks)
}

Expand Down
5 changes: 5 additions & 0 deletions application/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -61,11 +63,14 @@ kotlin {

val signingTasks = tasks.withType<Sign>()
val testTasks = tasks.withType<AbstractTestTask>()
val compileKotlinTasks = tasks.withType<KotlinCompile>()

tasks.withType<AbstractPublishToMaven>().configureEach {
dependsOn(signingTasks)
}

signingTasks.configureEach {
dependsOn(compileKotlinTasks)
dependsOn(testTasks)
}

Expand Down
4 changes: 4 additions & 0 deletions domain/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -72,11 +74,13 @@ kotlin {

val signingTasks = tasks.withType<Sign>()
val testTasks = tasks.withType<AbstractTestTask>()
val compileKotlinTasks = tasks.withType<KotlinCompile>() // Kotlin compile tasks

tasks.withType<AbstractPublishToMaven>().configureEach {
dependsOn(signingTasks)
}
signingTasks.configureEach {
dependsOn(compileKotlinTasks)
dependsOn(testTasks)
}

Expand Down

0 comments on commit d710912

Please sign in to comment.