-
Notifications
You must be signed in to change notification settings - Fork 107
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
Possibility to set versionRange in maven plugin #204
Comments
Would #172 solve that? It generates the range automatically. |
Not sure, we're handling versions in a special way so that a pom at version X-SNAPSHOT will be released to X.Y.0 and a pom at version X.Y-SNAPSHOT will be released to X.Y.Z. During development the version will just be featurename-SNAPSHOT. |
I'm not quite following your versioning (are you using branch name as version? are X and X.Y branch names then?), but the change proposed by Arnaud does the following
The question is whether SemanticVersionRange does the right thing for you when building the range, or if it needs to be fiddled with further. If you would be willing to try it out, I could push my branch (where I rebased Arnaud's changes) to GitHub. |
Yes, we use branch name as version during development of features. The checked in pom will for example have version 2-SNAPSHOT. Before building this version we have a plugin that resolves the branch name and then we run versions:set with the branch name as newVersion. Thus the build will not contain a semantic version. However, this version change is never commited back to git. We'll probably have to run japicmp in a separate build step without changing the version. This means that we need to compare version 2-SNAPSHOT to the latest 2.x.y-version. 2-SNAPSHOT is technically still incorrect according to the semver-spec, so by the looks of it #172 will not solve our issue. However, I think our versioning algorithm could do with a little update and rather use the mechanics defined in the semver-spec to mark our features during development. I'll close this issue for now while we evaluate the possibility to make these changes internally. |
We use a custom versioning mechanism in maven to automatically generate semantic versions. This mechanism keeps the development version at X-SNAPSHOT while releases of the component will be X.0.0, X.1.0, X.2.0 and so on. With the current solution the versionRangeWithProjectVersion is read only as "(,X-SNAPSHOT)" but we would like to be able to configure this range to something like "(X,)" so that previous release could be resolved automatically.
The text was updated successfully, but these errors were encountered: