The below custom boot dependency has a number of transitive dependencies. Few of these transitive dependencies have reference to org.hibernate group. I updated the below in my build.gradle file to exclude the dependency. However it doesn't seem to be removed when I run "gradle dependencies" and view the dependency tree.Should something be modified in order to exclude nested transitive dependencies?
compile("com.comp.service:service-boot:3.0.+") {
exclude group: 'org.hibernate'
}
Add the configurations section:
dependencies {
....
}
configurations {
all*.exclude group: 'org.hibernate'
}
You can also use module to narrow down the exclusion (if group alone removes too many transitive dependencies).
sources :
use as below block and i hope its work-
compile("com.comp.service:service-boot:3.0.+") {
exclude group: 'org.hibernate'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With