diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 82d742c..5e2b5e3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -43,6 +43,10 @@ val generateBuildInfo = tasks.register("generateBuildInfo") { commandLine("git", "-C", rootProject.projectDir.absolutePath, "rev-parse", "--short", "HEAD") }.standardOutput.asText.map { it.trim() } + // Register the commit as a task input: without this Gradle calls the + // task UP-TO-DATE after a new commit and the jar keeps the STALE baked + // commit (the in-app update check then never reports "up to date"). + inputs.property("commit", commit) doLast { val dir = outDir.get().asFile dir.mkdirs()