Skip to content

Release(fix): Require the publication version - #199

Merged
tony merged 3 commits into
masterfrom
fix/require-publication-version
Nov 30, 2026
Merged

tony merged 3 commits into
masterfrom
fix/require-publication-version

Conversation

@tony

@tony tony commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

The publication convention now requires libtmuxVersion while Gradle configures a project. Previously, a build missing the property could generate a POM at 0.0.1-alpha.1-SNAPSHOT. The release guide explains how to dispatch the workflow from an existing release tag with the matching version. This carries forward the publication fix from #22.

The TestKit fixture drops the caller’s ORG_GRADLE_PROJECT_libtmuxVersion so it can exercise a missing version even during a release build. Its other two cases read the generated POM after supplying a version in gradle.properties and after overriding it with -P.

Verification

  • Ran the original probe with a clean environment and with an inherited release version. The clean run passed. With the inherited value, a supposedly versionless build generated a POM and the probe failed.
  • Ran the revised probe in both environments. Both passed. Restoring the old snapshot fallback made the revised probe fail on the missing-version case. Restoring the required property made it pass again.
  • Generated the core POM in both outer builds. It contained 0.1.2-SNAPSHOT in the clean environment and 0.1.99-inherited when the caller supplied that version.
  • The full ./gradlew :libtmux-mcp:test check passed on JDK 25 and tmux 3.4 before relocating the changelog entry. A repeat after that edit failed in the MCP interrupt test, which reported a pane input state change between setup and sending Ctrl-C. The interrupt test passed in isolation, and the complete gate passed on retry at the same commit. The publication checks passed every time. Ran git diff --check.

Tool use

Codex prepared the TestKit isolation, generated the POMs, and checked the missing-version failure and the passing cases.

@tony tony mentioned this pull request Nov 28, 2026
5 tasks done
@tony
tony force-pushed the fix/require-publication-version branch from 26b9366 to 3789450 Compare November 28, 2026 21:45
@tony
tony force-pushed the fix/require-publication-version branch from 3789450 to 6b363b8 Compare November 29, 2026 16:26
tony added 3 commits November 29, 2026 20:46
why: Applying the publication plugin without libtmuxVersion built a
POM at an obsolete alpha snapshot coordinate.

what:
- Require the configured version and check both property sources
- Document manual dispatch against an existing release tag
why: An inherited Gradle version property lets the missing-property
probe publish a POM and makes the test fail before its override checks.

what: Remove ORG_GRADLE_PROJECT_libtmuxVersion from the nested TestKit
environment. The probe supplies its own file and command-line versions.
why: A missing release version now stops the build.

what: Document the required Gradle property for publishers.
@tony
tony force-pushed the fix/require-publication-version branch from 6b363b8 to 3b5da69 Compare November 30, 2026 02:46
@tony
tony merged commit ddcf8d2 into master Nov 30, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant