lib/java/pom.rb in buildr-1.2.5 vs lib/java/pom.rb in buildr-1.2.6
- old
+ new
@@ -84,11 +84,9 @@
transitive_deps = transitive_deps.reject{|dep|
exclusions.find {|ex| dep.index("#{dep['groupdId'].first}:#{dep['artifactId'].first}:") == 0}
} if exclusions
[Artifact.to_spec(spec.except(:scope))] + transitive_deps
- else
- nil
end
}.flatten.compact.uniq_by{|spec| art = spec.split(':'); "#{art[0]}:#{art[1]}"}
@depends_for_scopes[scopes] = depends
end