lib/jbundler/lock_down.rb in jbundler-0.8.0 vs lib/jbundler/lock_down.rb in jbundler-0.9.0
- old
+ new
@@ -147,10 +147,10 @@
index = 0
Gem.loaded_specs.each do |name, spec|
# TODO get rid of this somehow
deps = Maven::Tools::GemspecDependencies.new( spec )
deps.java_dependency_artifacts.each do |a|
- unless done.include? a.key
+ if not done.include?( a.key ) and (a.scope.nil? or a.scope == :compile or a.scope == :runtime)
maven.property( "jbundler.jars.#{index}", a.to_s )
index += 1
done << a.key
end
end