-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add possibility to exclude (transitive) dependencies #51
Comments
For those who land here by a google search, here is a workaround:
|
I agree it should be more straightforward., and have better alignment with how Gradle users expect to exclude dependencies using https://docs.gradle.org/current/userguide/managing_transitive_dependencies.html. I'd like the UX to feel more "Gradle native" by just using the existing However, there should be a workaround for your use-case. You can exclude the bad dependency from all configurations (if that is useful): configurations {
all {
exclude("org.slf4j", "slf4j-log4j12")
exclude("log4j", "log4j")
}
} Or exclude them specifically from the configurations created by the plugin or the |
Looks like you already figured out the workaround, thanks for posting it. |
If this dependency is added:
dependency("com.openshift.jenkins", "openshift-pipeline", "1.0.54")
the integrationTests fail in a
java.lang.StackOverflowError
. This answer here indicates that this might be a problem of an unwanted dependency. We might need the ability to exclude dependencies from plugins.The text was updated successfully, but these errors were encountered: