Skip to content

[FAQ] Integration of KSP Gradle Plugin and Quarkus Plugin Causes Build Task Failed #353

Answered by ArgonarioD
ArgonarioD asked this question in Q&A
Discussion options

You must be logged in to vote

应对方案 Workaround

quarkusio/quarkus#29698

解除 quarkusGenerateCodequarkusGenerateCodeDev 两个 Task 对于 processResources Task 的依赖,即可解除循环依赖。将下面这段代码加入到 build.gradle.kts 中。

Removing the dependency of the quarkusGenerateCode and quarkusGenerateCodeDev tasks on the processResources task will resolve the circular dependency. Add the following code into build.gradle.kts.

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.filte…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ArgonarioD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant