Skip to content

Commit

Permalink
Hotfix: Ensure KotlinCompileCommon depends on generateApiClientObject
Browse files Browse the repository at this point in the history
Added a dependency on generateApiClientObject for KotlinCompileCommon in build.gradle.kts. This change ensures that source tasks are properly ordered, preventing potential build issues.
  • Loading branch information
fscarponi committed Sep 12, 2024
1 parent 0b9c17f commit 9617184
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

Expand Down Expand Up @@ -56,6 +57,9 @@ tasks {
jvmSourcesJar{
dependsOn(generateApiClientObject)
}
withType<KotlinCompileCommon> {
dependsOn(generateApiClientObject)
}
withType<SourceTask>{
dependsOn(generateApiClientObject)
}
Expand Down

0 comments on commit 9617184

Please sign in to comment.