Class: Buildr::Resolver::Java

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/buildr/resolver/java.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJava

Returns a new instance of Java.



12
13
14
15
16
17
18
19
# File 'lib/buildr/resolver/java.rb', line 12

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

Instance Attribute Details

#naetherObject (readonly)

Returns the value of attribute naether.



10
11
12
# File 'lib/buildr/resolver/java.rb', line 10

def naether
  @naether
end

Instance Method Details

#jar_dependenciesObject



21
22
23
# File 'lib/buildr/resolver/java.rb', line 21

def jar_dependencies
  @naether_jars
end