-
Notifications
You must be signed in to change notification settings - Fork 158
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
[MENFORCER-435] Replacing maven-compat and maven-dependency-tree usage with Resolver #198
Conversation
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractBanDependencies.java
Show resolved
Hide resolved
I see. I was under the impression that the API for custom rule creators was the |
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BannedDependenciesBase.java
Outdated
Show resolved
Hide resolved
Closed by mistake... 👀 |
@olamy could you have a look as well? Thanks! |
Also resolves [MENFORCER-434] |
dd011d6
to
61b0d36
Compare
I'd also gladly use a DependencySelector to exclude artifacts already at the dependency node retrieval level, but if you say everything is public API, I'm not sure whether I am allowed to modify any class. @slawekjaranowski could you please help out? |
61b0d36
to
a758b4b
Compare
...rcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractPropertyEnforcerRule.java
Outdated
Show resolved
Hide resolved
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/ArtifactUtils.java
Outdated
Show resolved
Hide resolved
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/ArtifactUtils.java
Outdated
Show resolved
Hide resolved
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/ArtifactUtils.java
Outdated
Show resolved
Hide resolved
912bd4e
to
34fb709
Compare
Looks like javadoc linter was upset with |
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash to final commit and rebase with current master
1310b44
to
91353f2
Compare
Rebased and squashed. |
@slawekjaranowski your newest it failed. Checking. |
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BannedPlugins.java
Show resolved
Hide resolved
91353f2
to
9db82f3
Compare
maven-enforcer-plugin/src/it/projects/banned-dependencies-fail/invoker.properties
Show resolved
Hide resolved
9db82f3
to
d453c5f
Compare
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/ArtifactUtils.java
Outdated
Show resolved
Hide resolved
enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/DependencyConvergence.java
Outdated
Show resolved
Hide resolved
d453c5f
to
bd5b1d5
Compare
bd5b1d5
to
51995f6
Compare
It's been so long that I had forgotten the reasons why I did things like I did -- e.g. use bespoke dependency selectors instead of the regular ones (the reason for that being that the out of the box selectors only work on transitive dependencies). So I commented that piece. |
51995f6
to
10dae3d
Compare
10dae3d
to
8d12b7a
Compare
I mean, it would be nice if there were also selectors working on direct dependencies, but that would require changes (PR) to Resolver 🤡 |
Seems it might have caused MENFORCER-466, as 919fe02 is reported as first bad commit. |
See summary; also: dependency:tree is no longer necessary to check parent information of dependencies which triggered validation failures -- path information is included.
@slawekjaranowski please review