Sha256: 586f4d94d1045103a6d0e3bb0f331cc59920b4bfae5caca5161038888b7e9ad6

Contents?: true

Size: 576 Bytes

Versions: 13

Compression:

Stored size: 576 Bytes

Contents

require 'rubygems'
require 'naether'
require 'singleton'

module Buildr
  module Resolver
    class Java
      include Singleton
      
      attr_reader :naether
      
      def initialize
        
        # Load Naether jar dependencies
        @naether_jars = [Naether::Bootstrap.naether_jar]
        @naether_jars = @naether_jars + Buildr.artifacts(Naether.bootstrap_dependencies).each(&:invoke).map(&:to_s)
        
        @naether = Naether.create_from_jars( @naether_jars )
      end
      
      def jar_dependencies
        @naether_jars
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
buildr-resolver-0.4.8 lib/buildr/resolver/java.rb
buildr-resolver-0.4.7 lib/buildr/resolver/java.rb
buildr-resolver-0.4.6 lib/buildr/resolver/java.rb
buildr-resolver-0.4.5 lib/buildr/resolver/java.rb
buildr-resolver-0.4.4 lib/buildr/resolver/java.rb
buildr-resolver-0.4.3 lib/buildr/resolver/java.rb
buildr-resolver-0.4.2 lib/buildr/resolver/java.rb
buildr-resolver-0.4.1 lib/buildr/resolver/java.rb
buildr-resolver-0.4.0 lib/buildr/resolver/java.rb
buildr-resolver-0.3.6 lib/buildr/resolver/java.rb
buildr-resolver-0.3.5 lib/buildr/resolver/java.rb
buildr-resolver-0.3.4 lib/buildr/resolver/java.rb
buildr-resolver-0.3.3 lib/buildr/resolver/java.rb