Skip to content
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

Use provided version to manage semantic versioning checks #108

Closed
vrozov opened this issue Feb 13, 2016 · 2 comments
Closed

Use provided version to manage semantic versioning checks #108

vrozov opened this issue Feb 13, 2016 · 2 comments

Comments

@vrozov
Copy link

vrozov commented Feb 13, 2016

Instead of explicitly specifying what may change between version, it should be possible to extract this information from jar version. If the last two digits in the version are zeros, it is major version change and API may change, if only the last digit is zero, it is minor version change and binary compatibility should be preserved, if the last digit is not zero, it is a patch and API may not change at all.

@siom79
Copy link
Owner

siom79 commented Feb 14, 2016

I have added a new option breakBuildBasedOnSemanticVersioning to the maven plugin. This option tries to deduce the change level (major, minor, patch, unchanged) from the version (assuming it uses three digits) and breaks the build if this does not match the changes detected.

git clone https://github.com/siom79/japicmp.git
cd japicmp
git checkout develop
mvn install

@siom79
Copy link
Owner

siom79 commented Feb 21, 2016

Released with version 0.7.0.

@siom79 siom79 closed this as completed Feb 21, 2016
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

No branches or pull requests

2 participants