Try to fix setting property
ci/woodpecker/push/pages Pipeline was successful Details
ci/woodpecker/push/gradle Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-12-03 16:04:37 +01:00
parent 61d8aff1b4
commit 3c44dc563f
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ var Project.changelog: String
var Project.flavour: String
get() = prop("flavour", "").trim()
set(value) = setProperty("flavour", value)
set(value) {
if (hasProperty("flavour")) setProperty("flavour", value)
else extra.set("flavour", value)
}
val TaskContainer.deployDebug: Task get() = findByName("deployDebug") ?: register("deployDebug").get().dependsOn(named<DefaultTask>("build").get())
val TaskContainer.deployRelease: Task get() = findByName("deployRelease") ?: register("deployRelease").get().dependsOn(deployDebug)