Implement dynamic versioning with axion-release plugin#37
Open
Xitee1 wants to merge 2 commits into
Open
Conversation
versionName now comes from the latest v* git tag (project.version) and versionCode is the git rev-list --count HEAD commit count. CI checkouts use fetch-depth: 0 so tags and full history are visible to both axion-release and rev-list.
Reads cleaner than capturing the version into a local val first; both forms resolve the extension on the root project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate from manual version management to dynamic versioning using the axion-release plugin. This automates version derivation from git tags and commit history, eliminating the need to manually update version codes and names.
Key Changes
vand configured all projects to use the resolved SCM versionversionCodenow dynamically set to git commit count viagit rev-list --count HEADversionNamenow derived fromproject.version(latestv*git tag)ci.ymlandrelease.ymlto fetch full git history and tags (fetch-depth: 0,fetch-tags: true) so axion-release can access version informationAGENTS.mdto reflect the new dynamic versioning approach and release process (pushv<x.y.z>tags to trigger releases)gradle/libs.versions.tomlImplementation Details
v*tag automatically triggers the build and GitHub Release publicationhttps://claude.ai/code/session_01PSrWgqkFDtqBGuV78dbeci