From c8982f8f162a8d3bd459c66a42ec9c7aa7a10a15 Mon Sep 17 00:00:00 2001 From: Oleg Golberg Date: Wed, 6 May 2026 10:02:25 -0400 Subject: [PATCH] Drop -Preckon.stage=final from release workflow The flag was added in #46 as defense-in-depth against reckon's clean check failing, but it also disables the rebuild branch in Reckoner.reckonTargetVersion. With stage set, reckon skips the "isClean() && currentVersion.isPresent() && stage == null" path that returns the tag's exact version and instead computes a target normal via defaultInferredScope=patch, bumping 0.1.0 -> 0.1.1. That's why the 0.1.0 tag published as 0.1.1 to Maven Central. The .kotlin -> .gitignore change from #46 is the actual fix for the untracked-file clean-check problem. With that in place, the rebuild branch returns the tagged version cleanly and the flag is no longer needed. Verified locally at tag 0.1.0 with a clean tree: Reckoned version: 0.1.0 Generated with Claude Code --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d0bcc4..eb71239 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: distribution: corretto java-version: 17 - name: Publish - run: ./gradlew -Preckon.stage=final publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins --stacktrace --no-daemon + run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins --stacktrace --no-daemon env: PGP_KEY: ${{ secrets.PGP_KEY }} PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}