Skip to content

Add bump-snapshot mise task to automate version bumps#1875

Open
zeitlinger wants to merge 2 commits intomainfrom
bump-snapshot
Open

Add bump-snapshot mise task to automate version bumps#1875
zeitlinger wants to merge 2 commits intomainfrom
bump-snapshot

Conversation

@zeitlinger
Copy link
Member

@zeitlinger zeitlinger commented Feb 13, 2026

Summary

  • Add mise run bump-snapshot task that automates post-release snapshot
    version bumps across all pom.xml files
  • Make set-version.sh and build-release.sh dynamic — they now extract
    the current version from prometheus-metrics-parent/pom.xml instead of
    hard-coding it
  • Update RELEASING.md to reference the new task instead of manual
    find-and-replace instructions

Test plan

  • Verify mise tasks | grep bump-snapshot shows the task
  • Run mise run bump-snapshot and confirm all pom.xml files are updated
  • Run mise run build-release with no arguments and confirm it
    picks up the current snapshot version
  • Run mise run set-version 1.5.0 and confirm it replaces the
    current snapshot version dynamically

@zeitlinger zeitlinger force-pushed the bump-snapshot branch 2 times, most recently from d9d1832 to 2608f95 Compare February 13, 2026 20:41
After a release, the snapshot version must be updated across ~57 files.
This was previously a manual find-and-replace. The new `mise run
bump-snapshot` task automates it by extracting the current version from
the parent pom.xml and replacing it everywhere via git grep.

Also makes set-version.sh and build-release.sh dynamic so they no
longer hard-code the snapshot version.

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
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