Skip to content

Commit

Permalink
Quarkus: make QuarkusBuild not caching (#6015)
Browse files Browse the repository at this point in the history
See [Quarkus issue
30852](quarkusio/quarkus#30852), both the
actual bug and the fact that the cached output of the `GradleBuild` task
is huge.
  • Loading branch information
snazy authored Feb 3, 2023
1 parent 419f066 commit f9d258a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions servers/quarkus-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

import io.quarkus.gradle.tasks.QuarkusBuild
import io.quarkus.gradle.tasks.QuarkusGenerateCode
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
Expand Down Expand Up @@ -100,6 +99,7 @@ project.extra["quarkus.package.type"] =
quarkus { setFinalName("${project.name}-${project.version}") }

tasks.withType<QuarkusBuild>().configureEach {
outputs.cacheIf { false }
inputs.property("quarkus.package.type", project.extra["quarkus.package.type"])
inputs.property("final.name", quarkus.finalName())
val quarkusBuilderImage = libs.versions.quarkusBuilderImage.get()
Expand All @@ -111,8 +111,6 @@ tasks.withType<QuarkusBuild>().configureEach {
}
}

tasks.withType<QuarkusGenerateCode>().configureEach { outputs.cacheIf { true } }

val prepareJacocoReport by
tasks.registering {
doFirst {
Expand Down
4 changes: 1 addition & 3 deletions servers/quarkus-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

import io.quarkus.gradle.tasks.QuarkusBuild
import io.quarkus.gradle.tasks.QuarkusGenerateCode
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
Expand Down Expand Up @@ -131,6 +130,7 @@ val pullOpenApiSpec by

val quarkusBuild =
tasks.named<QuarkusBuild>("quarkusBuild") {
outputs.cacheIf { false }
dependsOn(pullOpenApiSpec)
inputs.property("quarkus.package.type", project.extra["quarkus.package.type"])
inputs.property("final.name", quarkus.finalName())
Expand All @@ -153,8 +153,6 @@ val quarkusBuild =
}
}

tasks.withType<QuarkusGenerateCode>().configureEach { outputs.cacheIf { true } }

val prepareJacocoReport by
tasks.registering {
doFirst {
Expand Down

0 comments on commit f9d258a

Please sign in to comment.