-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Exclude commons-logging from resteasy-client-microprofile #21148
Conversation
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building d9895cb
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: integration-tests/smallrye-opentracing
📦 integration-tests/smallrye-opentracing✖
|
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</exclusion> |
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.
I wonder if we should add it to our exclusion list in the build parent?
Also maybe we should add the JBoss Logging Bridge? You should be able to find which one to use in some of the other extensions.
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.
Sure, I will give it a try
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.
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.
The commons-logging-jboss-logging
is already declared in that pom.xml
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.
Hmm, but why don't we have an error if it's supposed to be excluded?
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.
@aloubyansky, @famod Do you know why commons-logging
can be in transitive dependencies while it is banned in the maven-enforcer-plugin
?
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.
No, it catches everything.
There's something weird going on because I don't get any commons-logging
when doing mvn dependency:tree
for this module and in particular for resteasy-client-microprofile
I get:
[INFO] +- org.jboss.resteasy:resteasy-client-microprofile:jar:4.7.0.Final:compile
[INFO] | \- org.jboss.resteasy:resteasy-client-microprofile-base:jar:4.7.0.Final:compile
[INFO] | +- org.jboss.resteasy:resteasy-client:jar:4.7.0.Final:compile
[INFO] | | +- org.jboss.resteasy:resteasy-client-api:jar:4.7.0.Final:compile
[INFO] | | \- commons-io:commons-io:jar:2.11.0:compile
[INFO] | \- org.jboss.resteasy:resteasy-cdi:jar:4.7.0.Final:compile
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.
I don't think the problem comes from the plug-in but from gradle ignoring it when resolving dependencies. How does maven handles that enforcer rules from dependencies ?
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.
The enforcer just checks that the dependencies are not around, it doesn't exclude anything. So if we don't have it in the Maven dependencies, it's because, using the Maven resolver, the dependency is not around. What I don't understand is why Gradle sees it in its dependencies. Maybe it still includes the transitive dependencies of the excluded dependencies?
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.
That’s really weird. Some transitive dependencies may bring commons-logging back but I don’t know how
the error doesn't seem related |
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.
OK, well, in any case, it doesn't hurt and we have checked that our enforcer plugin configuration is not missing anything here. I suspect there's something weird in how the dependencies are resolved in Gradle or our Gradle plugin, but we can merge this.
This makes sure commons-logging does not end up in the compile classpath of a gradle project.
close #20896