-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CurrentVersion is returning old version #846
Comments
To add some more information: If I remove
It's broke again. If I add |
Hi, we will look into it. |
@danshinton In the example you provided, do you have any commits after 1.6.0? |
So when I created this ticket, if I create a repo and just called This morning, it is working for some reason. So there must be some transient condition which is not triggering now. |
@danshinton Do you configure the axion-release plugin in the root dir of your project? The plugin uses the current location as a root to check for git changes in the last commits after the tag. If no changes are found, it uses the last release version instead of a snapshot. |
Hi, I have a bit of the same problems with this config in a composite setup (mono-repo) in a sub-folder "app1" where the build.gradle includes this
and tags are
and I am on master but 1 commit ahead of last tag (v0.1.5)
I expected release plugin to return version "0.1.6-SNAPSHOT" but it returns
UPDATE: |
Maybe I have a bit of an odd-case for this plugin, where I want to version from root in a composite mono-repository like setup, so I have
and I build apps independently but I want to release from root (mono-repo folder) because I want to use a single version across all applications, though they may have been build independently (or not at all for a specific version) to make sure I can do a checkout of a tag and see exactly which code was present, since libs (lib1 and lib2) are included.
so now it will use "git log" from |
The plugin was working just fine until this release. Now it returning the wrong version. Here is the output of
git tag
:When executing
gradle currentVersion
I would expect it to return1.7.0-SNAPSHOT
. Instead it returns:This means when trying to do a release it says:
Relevant Gradle config:
How can I go about troubleshooting this?
The text was updated successfully, but these errors were encountered: