Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-1
-
Fix Version/s: 1.0
-
Component/s: Standard Rules
-
Labels:None
Description
It would be fine if this enforcer rule could be tuned more finely to fail only if some dependency is put with some specified scope (the same could be done for the optional tag, btw).
In fact, in my case, I'd like to be sure that no project of ours is using log4j as a compile dependency, but it is allowed as a runtime one.
Another example: no project should ever have servlet-api as a dependency, with another scope than provided.
Thanks in advance.
Cheers.
Issue Links
- is duplicated by
-
MENFORCER-90
Allow "BannedDependencies" to restrict artifacts per-scope
-
Fixed in r989917.