lib/java/pom.rb in buildr-1.2.6 vs lib/java/pom.rb in buildr-1.2.7
- old
+ new
@@ -83,10 +83,10 @@
transitive_deps = POM.load(spec).dependencies(SCOPES_TRANSITIVE)
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
+ [Artifact.to_spec(spec)] + transitive_deps
end
}.flatten.compact.uniq_by{|spec| art = spec.split(':'); "#{art[0]}:#{art[1]}"}
@depends_for_scopes[scopes] = depends
end