[
https://issues.apache.org/jira/browse/MENFORCER-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte updated MENFORCER-241:
-------------------------------------
Comment: was deleted
(was: GitHub user sfussenegger opened a pull request:
https://github.com/apache/maven-enforcer/pull/16
MENFORCER-241 allow ignoring minor and patch level mismatches
this patch allows `dependencyConvergence` to only consider major and minor
version changes by introducing a new `degree` parameter. This patch maintains
backward compatibility but deprecates the `uniqueVersions` parameter.
usage:
```xml
<rules>
<dependencyConvergence>
<!-- one of MAJOR, MINOR, PATCH (default), UNIQUE (uniqueVersions=true)
-->
<degree>MAJOR</degree>
</dependencyConvergence>
</rules>
```
therefore these two are equal to maintain backward compatibility:
```xml
<rules>
<dependencyConvergence>
<degree>UNIQUE</degree>
</dependencyConvergence>
</rules>
<!-- equal -->
<rules>
<dependencyConvergence>
<uniqueVersions>true</uniqueVersions>
</dependencyConvergence>
</rules>
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/molindo/maven-enforcer
MENFORCER-241-version-mismatch-degree
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-enforcer/pull/16.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16
----
commit b95b1a3bb4ff65e9b54fddaee3c723d7b838a70b
Author: Stefan Fussenegger <[email protected]>
Date: 2015-10-13T11:58:49Z
MENFORCER-241 allow ignoring minor and patch level mismatches
----
)
> DependencyConverge - allow ignoring minor and patch level mismatches
> --------------------------------------------------------------------
>
> Key: MENFORCER-241
> URL: https://issues.apache.org/jira/browse/MENFORCER-241
> Project: Maven Enforcer Plugin
> Issue Type: Improvement
> Affects Versions: 1.4.1
> Reporter: Stefan Fussenegger
> Priority: Major
> Attachments: MENFORCER-241.patch
>
>
> sometimes it is acceptable to allow some degree of version mismatches. For
> instance, if an artifact follows [semantic versioning
> rules|http://semver.org/] it is acceptable to allow patch level mismatches
> (bug fixes) or even minor level mismatches (added backward compatible
> functionality).
> This new feature could somehow replace the current {{uniqueVersions}} flag
> which pretty much does the same thing to a lesser degree
--
This message was sent by Atlassian Jira
(v8.3.4#803005)