-
Notifications
You must be signed in to change notification settings - Fork 40
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
Strange master semantic versioning #39
Comments
Hi, Yes, you can just do something like: version = versioning.info.tag All the properties displayed above are available in your Gradle build, in the However, your tag is here The |
Thanks @dcoraboeuf Currently, I'm pushing on
Example: Nevertheless, on
Example: When I say that
Could I get this behavior? |
Currently, I've stuck still on that. I don't quite to figure out how to work with this plugin: Currently, I'm on master branch and it's tagged with
I'm not using Any ideas? |
For very specific versioning schemes, you can use the versioning {
/**
* Computation of the release type and the base, by parsing the scm info.
* By default, we use "/" as a separator in branch name between the type and the base. If not
* present, the type is the branch and the base is empty.
* F.e. if you want use tag name instead of branch you may provide something like:
*/
releaseParser = { scmInfo, separator = '/' -> ->
List<String> part = scmInfo.tag.split('/') + ''
new net.nemerosa.versioning.ReleaseInfo(type: part[0], base: part[1])
}
} You then take full control over your version computing. Other options are also available. |
What are What I want to get is picking
I hope I've explained so well... |
gradle versionDisplay
:versionDisplay
[version] scm = git
[version] branch = master
[version] branchType = master
[version] branchId = master
[version] commit = a4c3c40794e7ffd4fa7fa677dcb925714e0ce392
[version] full = master-a4c3c40
[version] base =
[version] build = a4c3c40
[version] display = master-a4c3c40
[version] tag = v0.1
[version] dirty = false
As you can see I'm on master branch on a tagged commit 'v0.1'.
I'd like that the version semantic version is 0.1.0
Is there anyway to get it?
The text was updated successfully, but these errors were encountered: