fix gradle task output (zip depends on browserDistribution), add util function for filtering tasks by name

This commit is contained in:
Adam 2022-10-08 16:04:50 +02:00
parent 5cb9fc0a88
commit 11cca3c8c3
2 changed files with 15 additions and 5 deletions

View file

@ -128,7 +128,7 @@ val installThemeCss by tasks.registering(Copy::class) {
}
tasks.matching { it.name == "processResources" }.configureEach {
tasks.withName("processResources").configureEach {
dependsOn(installThemeCss)
}
@ -136,9 +136,16 @@ tasks.matching { it.name == "processResources" }.configureEach {
val runWebMap by tasks.registering {
group = rootProject.name
dependsOn(tasks.matching { it.name == "browserDevelopmentRun" })
dependsOn(tasks.withName("browserDevelopmentRun"))
}
tasks.zip {
dependsOn(tasks.withName("browserDistribution"))
}
tasks.dockerComposeBuild {
dependsOn(tasks.zip)
}