naether 0.1-java → 0.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/lib/naether.rb +38 -0
- data/naether-0.2.jar +0 -0
- data/naether.gemspec +7 -2
- data/pom.xml +21 -1
- metadata +8 -12
- data/naether-0.1.jar +0 -0
data/README.rdoc
CHANGED
data/lib/naether.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'java'
|
2
|
+
Dir.glob("#{File.dirname(__FILE__)}/../*.jar") do |jar|
|
3
|
+
require jar
|
4
|
+
end
|
5
|
+
|
6
|
+
class Naether
|
7
|
+
|
8
|
+
def self.bootstrap_jars
|
9
|
+
Dir.glob("#{File.dirname(__FILE__)}/../*.jar")
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.bootstrap_dependencies
|
13
|
+
com.slackworks.Bootstrap.dependencies
|
14
|
+
end
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@resolver = com.slackworks.Naether.new
|
18
|
+
end
|
19
|
+
|
20
|
+
def add_dependency( notation )
|
21
|
+
@resolver.add_dependency( notation )
|
22
|
+
end
|
23
|
+
|
24
|
+
def resolve_dependencies
|
25
|
+
@resolver.resolve_dependencies();
|
26
|
+
dependencies
|
27
|
+
end
|
28
|
+
|
29
|
+
def dependencies=(dependencies)
|
30
|
+
dependencies.each do |dependent|
|
31
|
+
add_dependency( dependent )
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def dependencies
|
36
|
+
@resolver.get_dependencies_notation.to_a
|
37
|
+
end
|
38
|
+
end
|
data/naether-0.2.jar
ADDED
Binary file
|
data/naether.gemspec
CHANGED
@@ -32,6 +32,11 @@ unless File.exists?( "target/gem" )
|
|
32
32
|
Dir.mkdir( "target/gem" )
|
33
33
|
end
|
34
34
|
|
35
|
+
unless File.exists?( "target/gem/lib" )
|
36
|
+
Dir.mkdir( "target/gem/lib" )
|
37
|
+
end
|
38
|
+
|
39
|
+
File.copy( 'src/main/ruby/naether.rb', "target/gem/lib/naether.rb" )
|
35
40
|
File.copy( 'naether.gemspec', "target/gem/naether.gemspec" )
|
36
41
|
File.copy( 'LICENSE', "target/gem/LICENSE" )
|
37
42
|
File.copy( 'README.rdoc', "target/gem/README.rdoc" )
|
@@ -57,7 +62,7 @@ Java Dependency Resolver for using Maven's Aether
|
|
57
62
|
# Rakefile needs to create spec for both platforms (ruby and java), using the
|
58
63
|
# $platform global variable. In all other cases, we figure it out from RUBY_PLATFORM.
|
59
64
|
spec.platform = 'java'
|
60
|
-
|
61
|
-
spec.files = ['naether.gemspec', 'LICENSE','README.rdoc','pom.xml', naether_jar]
|
65
|
+
spec.require_paths = %w[lib]
|
66
|
+
spec.files = ['naether.gemspec', 'LICENSE','README.rdoc','pom.xml', 'lib/naether.rb', naether_jar]
|
62
67
|
|
63
68
|
end
|
data/pom.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<groupId>com.slackworks</groupId>
|
6
6
|
<artifactId>naether</artifactId>
|
7
|
-
<version>0.
|
7
|
+
<version>0.2</version>
|
8
8
|
<packaging>jar</packaging>
|
9
9
|
|
10
10
|
<name>naether</name>
|
@@ -36,6 +36,16 @@
|
|
36
36
|
<artifactId>slf4j-api</artifactId>
|
37
37
|
<version>${org.slf4j.version}</version>
|
38
38
|
</dependency>
|
39
|
+
<dependency>
|
40
|
+
<groupId>org.slf4j</groupId>
|
41
|
+
<artifactId>jcl-over-slf4j</artifactId>
|
42
|
+
<version>${org.slf4j.version}</version>
|
43
|
+
</dependency>
|
44
|
+
<dependency>
|
45
|
+
<groupId>org.slf4j</groupId>
|
46
|
+
<artifactId>log4j-over-slf4j</artifactId>
|
47
|
+
<version>${org.slf4j.version}</version>
|
48
|
+
</dependency>
|
39
49
|
<dependency>
|
40
50
|
<groupId>org.codehaus.plexus</groupId>
|
41
51
|
<artifactId>plexus-utils</artifactId>
|
@@ -91,6 +101,16 @@
|
|
91
101
|
<artifactId>wagon-ssh</artifactId>
|
92
102
|
<version>${wagonVersion}</version>
|
93
103
|
</dependency>
|
104
|
+
|
105
|
+
|
106
|
+
<!-- exclude commons logging -->
|
107
|
+
<dependency>
|
108
|
+
<groupId>commons-logging</groupId>
|
109
|
+
<artifactId>commons-logging</artifactId>
|
110
|
+
<version>1.1.1</version>
|
111
|
+
<scope>provided</scope>
|
112
|
+
</dependency>
|
113
|
+
|
94
114
|
|
95
115
|
<!-- Test Scope -->
|
96
116
|
<dependency>
|
metadata
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naether
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
version: "0.1"
|
4
|
+
prerelease:
|
5
|
+
version: "0.2"
|
9
6
|
platform: java
|
10
7
|
authors:
|
11
8
|
- Michael Guymon
|
@@ -13,7 +10,7 @@ autorequire:
|
|
13
10
|
bindir: bin
|
14
11
|
cert_chain: []
|
15
12
|
|
16
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-26 00:00:00 -05:00
|
17
14
|
default_executable:
|
18
15
|
dependencies: []
|
19
16
|
|
@@ -32,7 +29,8 @@ files:
|
|
32
29
|
- LICENSE
|
33
30
|
- README.rdoc
|
34
31
|
- pom.xml
|
35
|
-
- naether
|
32
|
+
- lib/naether.rb
|
33
|
+
- naether-0.2.jar
|
36
34
|
has_rdoc: true
|
37
35
|
homepage: https://github.com/mguymon/naether
|
38
36
|
licenses: []
|
@@ -43,23 +41,21 @@ rdoc_options: []
|
|
43
41
|
require_paths:
|
44
42
|
- lib
|
45
43
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
46
45
|
requirements:
|
47
46
|
- - ">="
|
48
47
|
- !ruby/object:Gem::Version
|
49
|
-
segments:
|
50
|
-
- 0
|
51
48
|
version: "0"
|
52
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
53
51
|
requirements:
|
54
52
|
- - ">="
|
55
53
|
- !ruby/object:Gem::Version
|
56
|
-
segments:
|
57
|
-
- 0
|
58
54
|
version: "0"
|
59
55
|
requirements: []
|
60
56
|
|
61
57
|
rubyforge_project: naether
|
62
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.5.2
|
63
59
|
signing_key:
|
64
60
|
specification_version: 3
|
65
61
|
summary: Java Dependency Resolver
|
data/naether-0.1.jar
DELETED
Binary file
|