Skip to content

Commit

Permalink
Ignore blacklist if rewrite is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur9991 committed Nov 21, 2022
1 parent dc1bb3a commit fc49739
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ class DependencyManagementProjectConfigurer {

static def configureExcludes(Project project, Configuration config, DependencyManagementContainer container) {
container.blackList.each { ga ->
container.resolveIfNecessary()
project.logger.debug("Excluding ${ga.toMap()} from configuration ${config.getName()}")
config.exclude ga.toMap()
// DO NOT blacklist if there is a rewrite
if (!container.rewrites[ga]) {
container.resolveIfNecessary()
project.logger.debug("Excluding ${ga.toMap()} from configuration ${config.getName()}")
config.exclude ga.toMap()
}
}
}

Expand Down

0 comments on commit fc49739

Please sign in to comment.