Module: MiniAether::Bootstrap

Extended by:
Helper
Defined in:
lib/mini_aether/bootstrap.rb

Constant Summary

Constants included from Helper

Helper::System

Class Method Summary collapse

Methods included from Helper

interpolate, jar_path, local_repository_path

Class Method Details

.bootstrap!Object

Load the required jar files, downloading them if necessary.

Ignores any maven config regarding repositories and attempts a direct download from repo1.maven.org using Net::HTTP.



17
18
19
20
21
22
23
24
25
26
# File 'lib/mini_aether/bootstrap.rb', line 17

def bootstrap!
  logback = false
  dependencies.each do |dep|
    require ensure_dependency(dep)
    if dep[:artifact_id] == 'logback-classic'
      logback = true
    end
  end
  initialize_logger if logback
end