Replies: 1 comment
-
|
There is no explicit task for that. But you could just apply it to all dependencies like this: def mvnDeps = super.mvnDeps().map(_.exclude("org" -> "artifactId"))Btw, how do you exclude dependencies globally in Maven? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to exclude dependencies globally (or at least for that module)? It can be done in Gradle and Maven. The docs only explain about transitive dependencies.
An example use case is changing the logging provider in Spring. By default logback is included. You can transitively exclude it in
spring-boot-starterbut this starter is transitively included in most starters e.g. if you need web + security. It makes it very hard to exclude and track.Beta Was this translation helpful? Give feedback.
All reactions