lib/buildr/resolver.rb in buildr-resolver-0.2.2 vs lib/buildr/resolver.rb in buildr-resolver-0.2.3

- old
+ new

@@ -13,12 +13,14 @@ # Load Naether jar dependencies naether_jars = [Naether::Bootstrap.naether_jar] naether_jars = naether_jars + Buildr.artifacts(resolver_dependencies).each(&:invoke).map(&:to_s) naether = Naether.create_from_jars( naether_jars ) - naether.clear_remote_repositories - Buildr.repositories.remote.each do |repo| - naether.add_remote_repository( repo ) + if Buildr.repositories.remote.size > 0 + naether.clear_remote_repositories + Buildr.repositories.remote.each do |repo| + naether.add_remote_repository( repo ) + end end naether.dependencies = dependencies naether.resolve_dependencies naether.dependencies \ No newline at end of file