Gradle - Configurations
Example
slf4j exclusion
Exclude slf4j with the exclude rule to exclude transitive dependencies for all dependencies of this configuration
- For one project
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-api'
}
- For all project
allprojects {
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-api'
}
}