Skip to content

Commit

Permalink
Guard against trying to apply dependency excludes on transitive deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Nov 12, 2015
1 parent fbbd1b5 commit c5e775e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
4.4.2 / 2015-11-12
==================

* Bugfix to guard against trying to apply dependency excludes on transitive deps

4.4.1 / 2015-11-04
==================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ class IvyExcludesPlugin implements Plugin<Project> {
.findAll { !it.excludeRules.isEmpty() }
.each { md ->
def dep = dependencies.find { it.@org == md.group && it.@name == md.name }
md.excludeRules.each { rule ->
def exclude = dep.appendNode('exclude')
if (rule.group)
exclude.@org = rule.group
if (rule.module)
exclude.@module = rule.module
if(dep != null) {
md.excludeRules.each { rule ->
def exclude = dep.appendNode('exclude')
if (rule.group)
exclude.@org = rule.group
if (rule.module)
exclude.@module = rule.module
}
}
}
}
Expand Down

0 comments on commit c5e775e

Please sign in to comment.