Skip to content

Release with vesnik and publish to Maven Central from the tag - #152

Merged
JoaoFSCruz merged 1 commit into
mainfrom
feature/msd-15526-java-sdk-release-with-vesnik
Nov 19, 2026
Merged

JoaoFSCruz merged 1 commit into
mainfrom
feature/msd-15526-java-sdk-release-with-vesnik

Conversation

@JoaoFSCruz

Copy link
Copy Markdown
Contributor

Changelist

  • pom.xml: the version is a placeholder, 0.0.0-SNAPSHOT.
  • publish.yaml: runs on a v* tag push instead of a published release. It sets the version from the tag with versions-maven-plugin, then deploys. The check that the tag matches the pom is removed. You can still run the workflow by hand on a tag, to retry a failed publish.
  • README.md: the install lines use x.y.z, with a Maven Central badge and a link to the latest version.
  • justfile: new release and hotfix-release recipes that run vesnik.
  • .vesnik.yaml: vesnik config. vesnik only tags and writes the release notes, with no ticket keys.
  • flake.nix and flake.lock: add vesnik v0.2.0 and just.

@JoaoFSCruz JoaoFSCruz self-assigned this Nov 18, 2026
@mailerlite-kritika

Copy link
Copy Markdown

Re-runViewConfidence Score: 5/5

[High risk] The workflow change makes any v* tag push deploy to Maven Central, which cannot be undone once published, so the risk rests on the publish path rather than the pom placeholder. The tag regex is checked before the tag reaches the shell, and the versions-maven-plugin step is pinned to 2.18.0, so the diff itself shows no defect. The pom line moves the project's own version, not a dependency, so its reach is none.

Summary

Moves Maven publishing to a version-tag push, with vesnik tagging

The pom version becomes a placeholder, and publish.yaml now runs on a v* tag push. It validates the tag format and writes the version into the pom with versions-maven-plugin 2.18.0 before mvn clean deploy. New justfile recipes run vesnik to tag and write release notes, and the Nix dev shell gains vesnik v0.2.0 and just. After merging, the first real check is pushing a v* tag and confirming the published artifact version on Maven Central matches it.

What's good

  • The tag regex guard fails fast when the workflow is run by hand on a branch or on a malformed tag.
  • The justfile has a manual release fallback and distinct messages for each vesnik failure exit code.
  • The vesnik and just versions are pinned in the flake (vesnik at v0.2.0) and locked in flake.lock.
Review context · 0/5 commands · 2 overlapping pull requests
  • Commands run: none
  • Also open:
    • #149 changes README.md
    • #150 changes README.md

Reviews (1) · Last reviewed commit: "ci: release with vesnik and publish to M..." · claude-sonnet-5-5

@JoaoFSCruz
JoaoFSCruz requested a review from a team November 18, 2026 13:31
@JoaoFSCruz
JoaoFSCruz merged commit 7eb63d9 into main Nov 19, 2026
4 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