Vlastimil Brecka
06/26/2026, 8:49 PM./gradlew deploy, and everything already deployed will be UP-TO-DATE, so a no-op.
(I'm not sure how it would know if it's already deployed, probably via a hash of the binary?)
Is this a good idea to model this in the build system?Vampire
06/26/2026, 9:45 PMVlastimil Brecka
06/26/2026, 9:48 PMephemient
06/26/2026, 10:51 PMtasks.deployFoo {
onlyIf { getLiveVersion("foo") != fooVersion }
}
but you wouldn't have a good way of seeing which deployments would actually happen before running them (--dry-run shows everything as SKIPPED regardless of onlyIf), which is something other tools made for this purpose like Terraform can doVlastimil Brecka
06/27/2026, 1:38 AM