Skip to content

Commit 419da2a

Browse files
committed
hopefully fix now the order of quarkus build
1 parent fb1c3e5 commit 419da2a

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed
Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2-
31
plugins {
42
alias(libs.plugins.quarkus)
53
}
@@ -16,13 +14,10 @@ dependencies {
1614
testImplementation(libs.quarkus.junit5)
1715
}
1816

19-
// Workaround for Quarkus circular dependency issue
20-
// See: https://github.com/quarkusio/quarkus/issues/29698
21-
project.afterEvaluate {
22-
getTasksByName("quarkusGenerateCode", true).forEach { task ->
23-
task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>().filter { it.get().name != "processResources" })
24-
}
25-
getTasksByName("quarkusGenerateCodeDev", true).forEach { task ->
26-
task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>().filter { it.get().name != "processResources" })
27-
}
17+
tasks.compileKotlin {
18+
mustRunAfter(tasks.compileQuarkusGeneratedSourcesJava, tasks.compileQuarkusTestGeneratedSourcesJava)
19+
}
20+
21+
tasks.sourcesJar {
22+
mustRunAfter(tasks.compileQuarkusGeneratedSourcesJava)
2823
}

0 commit comments

Comments
 (0)