Skip to content

Commit 6feac61

Browse files
committed
improve documentation of banDynamicVersions
fix wrong description of allowRanges add JIRA link for allowRangesWithIdenticalBounds clarify excludedScopes
1 parent 435807f commit 6feac61

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

enforcer-rules/src/site/apt/banDynamicVersions.apt.vm

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ Ban Dynamic Versions
3838

3939
The following parameters are supported by this rule:
4040

41-
* <<allowSnapshots>> - if <<<true>>> dependencies with versions ending with <<<-SNAPSHOT>>> will not be banned. Default is <<<false>>>.
41+
* <<allowSnapshots>> - if <<<true>>> dependencies with versions ending with <<<-SNAPSHOT>>> will not be banned. Default is <<<false>>>.
4242

43-
* <<allowRelease>> - if <<<true>>> dependencies with version placeholder <<<RELEASE>>> will not be banned. Default is <<<false>>>.
43+
* <<allowRelease>> - if <<<true>>> dependencies with version placeholder <<<RELEASE>>> will not be banned. Default is <<<false>>>.
4444

45-
* <<allowLatest>> - if <<<true>>> dependencies with versions placeholder <<<LATEST>>> will not be banned. Default is <<<false>>>.
45+
* <<allowLatest>> - if <<<true>>> dependencies with versions placeholder <<<LATEST>>> will not be banned. Default is <<<false>>>.
4646

47-
* <<allowRanges>> - if <<<true>>> versions ending with <<<-SNAPSHOT>>> will not be banned. Default is <<<false>>>.
47+
* <<allowRanges>> - if <<<true>>> versions starting with either <<<[>>> or <<<(>>> will not be banned. Default is <<<false>>>.
4848

49-
* <<allowRangesWithIdenticalBounds>> - if <<<true>>> ranges having a range with same upper and lower bound (always inclusive) will not be banned (although they require resolving).
49+
* <<allowRangesWithIdenticalBounds>> - if <<<true>>> ranges having a range with same upper and lower bound (always inclusive) will not be banned (although they require resolving in some Maven versions, {{{https://issues.apache.org/jira/browse/MNG-7561}MNG-7461}}).
5050

51-
* <<excludeOptionals>> - if <<<true>>> optional dependencies won't be checked. Default is <<<false>>>.
51+
* <<excludeOptionals>> - if <<<true>>> direct optional dependencies won't be checked. Default is <<<false>>>.
5252

53-
* <<excludedScopes>> - the list of scopes to exclude. By default no scopes are excluded.
53+
* <<excludedScopes>> - the list of scopes to exclude from direct dependencies. By default no scopes are excluded. For transitive dependencies the regular Maven rules are applied.
5454

5555
* <<ignores>> - a list of dependencies to ignore. The format is <<<groupId[:artifactId[:version[:type[:scope:[classifier]]]]]>>> where <<<artifactId>>>, <<<version>>>, <<<type>>>, <<<scope>>> and <<<classifier>>> are optional (but require all previous parts). Wildcards may be used to replace an entire or just parts of a section.
5656
Examples:

0 commit comments

Comments
 (0)