[FAQ] Integration of KSP Gradle Plugin and Quarkus Plugin Causes Build Task Failed #353
-
标题 Title整合 KSP Gradle 插件与 Quarkus Gradle 插件导致构建任务失败 Integration of KSP Gradle Plugin and Quarkus Plugin Causes Build Task Faild 相关依赖版本 Related Dependency Versions
问题详述 Problem Detail在 After importing the Gradle plugins
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
应对方案 Workaround解除 Removing the dependency of the project.afterEvaluate {
getTasksByName("quarkusGenerateCode", true).forEach { task ->
task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>().filter { it.get().name != "processResources" })
}
getTasksByName("quarkusGenerateCodeDev", true).forEach { task ->
task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>().filter { it.get().name != "processResources" })
}
} |
Beta Was this translation helpful? Give feedback.
应对方案 Workaround
quarkusio/quarkus#29698
解除
quarkusGenerateCode
与quarkusGenerateCodeDev
两个 Task 对于processResources
Task 的依赖,即可解除循环依赖。将下面这段代码加入到build.gradle.kts
中。Removing the dependency of the
quarkusGenerateCode
andquarkusGenerateCodeDev
tasks on theprocessResources
task will resolve the circular dependency. Add the following code intobuild.gradle.kts
.