naether 0.9.2-java → 0.10.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/core-0.10.0.jar +0 -0
- data/doc/Naether.html +314 -171
- data/doc/Naether/Bootstrap.html +442 -125
- data/doc/Naether/Configurator.html +43 -32
- data/doc/Naether/Java.html +486 -73
- data/doc/Naether/Java/JRuby.html +371 -89
- data/doc/Naether/Java/Ruby.html +530 -147
- data/doc/Naether/Maven.html +4 -4
- data/doc/Naether/Notation.html +714 -0
- data/doc/_index.html +11 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +5 -5
- data/doc/frames.html +1 -1
- data/doc/index.html +5 -5
- data/doc/method_list.html +94 -22
- data/doc/top-level-namespace.html +3 -3
- data/lib/naether.rb +33 -6
- data/lib/naether/bootstrap.rb +37 -6
- data/lib/naether/configuration.rb +5 -1
- data/lib/naether/java.rb +63 -12
- data/lib/naether/java/jruby.rb +39 -14
- data/lib/naether/java/ruby.rb +69 -16
- data/lib/naether/maven.rb +1 -1
- data/lib/naether/notation.rb +42 -0
- data/naether.gemspec +5 -25
- data/pom.xml +9 -114
- metadata +72 -152
- data/naether-0.9.2.jar +0 -0
data/lib/naether/maven.rb
CHANGED
@@ -130,7 +130,7 @@ class Naether
|
|
130
130
|
|
131
131
|
# Load dependencies and remote repo from a {Naether} instance
|
132
132
|
def load_naether( naether )
|
133
|
-
self.dependencies= naether.resolver.
|
133
|
+
self.dependencies= naether.resolver.currentDependencies()
|
134
134
|
self.repositories= naether.resolver.getRemoteRepositoryUrls()
|
135
135
|
end
|
136
136
|
|
@@ -0,0 +1,42 @@
|
|
1
|
+
class Naether
|
2
|
+
|
3
|
+
#
|
4
|
+
# Helper for handling Maven notations, supports notations:
|
5
|
+
# * artifactId:groupId:version
|
6
|
+
# * artifactId:groupId:type:version
|
7
|
+
# * artifactId:groupId:type:classifier:version
|
8
|
+
#
|
9
|
+
class Notation
|
10
|
+
attr_reader :group, :artifact, :version, :classifier, :type
|
11
|
+
|
12
|
+
PATTERN = Regexp.compile( '^(.+?):(.+?):(.+?)(:(.+?)(:(.+))?)?$' )
|
13
|
+
|
14
|
+
def initialize(notation)
|
15
|
+
if notation =~ PATTERN
|
16
|
+
@group = Regexp.last_match(1)
|
17
|
+
@artifact = Regexp.last_match(2)
|
18
|
+
|
19
|
+
# artifactId:groupId:type:classifier:version
|
20
|
+
if Regexp.last_match(7)
|
21
|
+
@type = Regexp.last_match(3)
|
22
|
+
@classifier = Regexp.last_match(5)
|
23
|
+
@version = Regexp.last_match(7)
|
24
|
+
|
25
|
+
# artifactId:groupId:type:version
|
26
|
+
elsif Regexp.last_match(5)
|
27
|
+
@type = Regexp.last_match(3)
|
28
|
+
@version = Regexp.last_match(5)
|
29
|
+
# artifactId:groupId:version -
|
30
|
+
else
|
31
|
+
@type = 'jar'
|
32
|
+
@version = Regexp.last_match(3)
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
def to_notation
|
38
|
+
"#{group}:#{artifact}:#{type}#{":#{classifier}" if classifier}:#{version}"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
data/naether.gemspec
CHANGED
@@ -5,17 +5,16 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "naether"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.10.0"
|
9
9
|
s.platform = "java"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Michael Guymon"]
|
13
|
-
s.date = "2012-
|
13
|
+
s.date = "2012-10-15"
|
14
14
|
s.description = "Java dependency resolver using Maven's Aether"
|
15
15
|
s.email = "michael@tobedevoured.com"
|
16
16
|
s.extensions = ["Rakefile"]
|
17
17
|
s.extra_rdoc_files = [
|
18
|
-
"LICENSE",
|
19
18
|
"README.md"
|
20
19
|
]
|
21
20
|
s.files = [
|
@@ -23,6 +22,7 @@ Gem::Specification.new do |s|
|
|
23
22
|
"README.md",
|
24
23
|
"Rakefile",
|
25
24
|
"VERSION",
|
25
|
+
"core-0.10.0.jar",
|
26
26
|
"doc/Naether.html",
|
27
27
|
"doc/Naether/Bootstrap.html",
|
28
28
|
"doc/Naether/Configurator.html",
|
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
"doc/Naether/Java/JRuby.html",
|
31
31
|
"doc/Naether/Java/Ruby.html",
|
32
32
|
"doc/Naether/Maven.html",
|
33
|
+
"doc/Naether/Notation.html",
|
33
34
|
"doc/_index.html",
|
34
35
|
"doc/class_list.html",
|
35
36
|
"doc/css/common.css",
|
@@ -52,7 +53,7 @@ Gem::Specification.new do |s|
|
|
52
53
|
"lib/naether/java/jruby.rb",
|
53
54
|
"lib/naether/java/ruby.rb",
|
54
55
|
"lib/naether/maven.rb",
|
55
|
-
"naether
|
56
|
+
"lib/naether/notation.rb",
|
56
57
|
"naether.gemspec",
|
57
58
|
"pom.xml"
|
58
59
|
]
|
@@ -67,30 +68,9 @@ Gem::Specification.new do |s|
|
|
67
68
|
s.specification_version = 3
|
68
69
|
|
69
70
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
70
|
-
s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
|
71
|
-
s.add_development_dependency(%q<rspec>, ["> 2.9.0"])
|
72
|
-
s.add_development_dependency(%q<bundler>, ["> 1.0.0"])
|
73
|
-
s.add_development_dependency(%q<jeweler>, ["> 1.5.2"])
|
74
|
-
s.add_development_dependency(%q<yard>, [">= 0"])
|
75
|
-
s.add_development_dependency(%q<kramdown>, [">= 0"])
|
76
|
-
s.add_development_dependency(%q<jruby-openssl>, [">= 0"])
|
77
71
|
else
|
78
|
-
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
79
|
-
s.add_dependency(%q<rspec>, ["> 2.9.0"])
|
80
|
-
s.add_dependency(%q<bundler>, ["> 1.0.0"])
|
81
|
-
s.add_dependency(%q<jeweler>, ["> 1.5.2"])
|
82
|
-
s.add_dependency(%q<yard>, [">= 0"])
|
83
|
-
s.add_dependency(%q<kramdown>, [">= 0"])
|
84
|
-
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
85
72
|
end
|
86
73
|
else
|
87
|
-
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
88
|
-
s.add_dependency(%q<rspec>, ["> 2.9.0"])
|
89
|
-
s.add_dependency(%q<bundler>, ["> 1.0.0"])
|
90
|
-
s.add_dependency(%q<jeweler>, ["> 1.5.2"])
|
91
|
-
s.add_dependency(%q<yard>, [">= 0"])
|
92
|
-
s.add_dependency(%q<kramdown>, [">= 0"])
|
93
|
-
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
94
74
|
end
|
95
75
|
end
|
96
76
|
|
data/pom.xml
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
2
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3
|
+
<parent>
|
4
|
+
<groupId>com.tobedevoured.naether</groupId>
|
5
|
+
<artifactId>parent</artifactId>
|
6
|
+
<version>0.10.0</version>
|
7
|
+
</parent>
|
3
8
|
<modelVersion>4.0.0</modelVersion>
|
4
|
-
<
|
5
|
-
<artifactId>naether</artifactId>
|
9
|
+
<artifactId>core</artifactId>
|
6
10
|
<name>Naether</name>
|
7
11
|
<packaging>jar</packaging>
|
8
|
-
<
|
9
|
-
<url>https://github.com/mguymon/naether</url>
|
12
|
+
<url>https://github.com/mguymon/naether</url>
|
10
13
|
<description>
|
11
14
|
A Java Dependency Resolver using Maven’s Aether.
|
12
15
|
</description>
|
@@ -50,13 +53,9 @@
|
|
50
53
|
</properties>
|
51
54
|
|
52
55
|
<dependencies>
|
56
|
+
|
53
57
|
<!-- Logging -->
|
54
58
|
<dependency>
|
55
|
-
<groupId>ch.qos.logback</groupId>
|
56
|
-
<artifactId>logback-classic</artifactId>
|
57
|
-
<version>1.0.6</version>
|
58
|
-
</dependency>
|
59
|
-
<dependency>
|
60
59
|
<groupId>org.slf4j</groupId>
|
61
60
|
<artifactId>jcl-over-slf4j</artifactId>
|
62
61
|
<version>${org.slf4j.version}</version>
|
@@ -130,111 +129,7 @@
|
|
130
129
|
<artifactId>wagon-file</artifactId>
|
131
130
|
<version>${wagonVersion}</version>
|
132
131
|
</dependency>
|
133
|
-
|
134
|
-
<!-- Testing -->
|
135
|
-
<dependency>
|
136
|
-
<groupId>junit</groupId>
|
137
|
-
<artifactId>junit</artifactId>
|
138
|
-
<version>4.10</version>
|
139
|
-
<scope>test</scope>
|
140
|
-
</dependency>
|
132
|
+
|
141
133
|
</dependencies>
|
142
|
-
|
143
|
-
<build>
|
144
|
-
<plugins>
|
145
|
-
<plugin>
|
146
|
-
<groupId>org.codehaus.mojo</groupId>
|
147
|
-
<artifactId>sonar-maven-plugin</artifactId>
|
148
|
-
<version>2.0</version>
|
149
|
-
</plugin>
|
150
|
-
<plugin>
|
151
|
-
<groupId>com.github.github</groupId>
|
152
|
-
<artifactId>site-maven-plugin</artifactId>
|
153
|
-
<version>0.6</version>
|
154
|
-
<configuration>
|
155
|
-
<message>Creating site for ${project.version}</message>
|
156
|
-
</configuration>
|
157
|
-
<executions>
|
158
|
-
<execution>
|
159
|
-
<goals>
|
160
|
-
<goal>site</goal>
|
161
|
-
</goals>
|
162
|
-
<phase>site</phase>
|
163
|
-
</execution>
|
164
|
-
</executions>
|
165
|
-
</plugin>
|
166
|
-
<plugin>
|
167
|
-
<groupId>org.apache.maven.plugins</groupId>
|
168
|
-
<artifactId>maven-source-plugin</artifactId>
|
169
|
-
<executions>
|
170
|
-
<execution>
|
171
|
-
<id>attach-sources</id>
|
172
|
-
<goals>
|
173
|
-
<goal>jar</goal>
|
174
|
-
</goals>
|
175
|
-
</execution>
|
176
|
-
</executions>
|
177
|
-
</plugin>
|
178
|
-
<plugin>
|
179
|
-
<groupId>org.apache.maven.plugins</groupId>
|
180
|
-
<artifactId>maven-javadoc-plugin</artifactId>
|
181
|
-
<executions>
|
182
|
-
<execution>
|
183
|
-
<id>attach-javadocs</id>
|
184
|
-
<goals>
|
185
|
-
<goal>jar</goal>
|
186
|
-
</goals>
|
187
|
-
</execution>
|
188
|
-
</executions>
|
189
|
-
</plugin>
|
190
|
-
<plugin>
|
191
|
-
<groupId>org.apache.maven.plugins</groupId>
|
192
|
-
<artifactId>maven-gpg-plugin</artifactId>
|
193
|
-
<executions>
|
194
|
-
<execution>
|
195
|
-
<id>sign-artifacts</id>
|
196
|
-
<phase>verify</phase>
|
197
|
-
<goals>
|
198
|
-
<goal>sign</goal>
|
199
|
-
</goals>
|
200
|
-
</execution>
|
201
|
-
</executions>
|
202
|
-
</plugin>
|
203
|
-
</plugins>
|
204
|
-
</build>
|
205
|
-
|
206
|
-
<reporting>
|
207
|
-
<plugins>
|
208
|
-
<plugin>
|
209
|
-
<groupId>org.apache.maven.plugins</groupId>
|
210
|
-
<artifactId>maven-project-info-reports-plugin</artifactId>
|
211
|
-
<version>2.4</version>
|
212
|
-
<configuration>
|
213
|
-
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
|
214
|
-
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
|
215
|
-
</configuration>
|
216
|
-
<reportSets>
|
217
|
-
<reportSet>
|
218
|
-
<reports>
|
219
|
-
<report>dependencies</report>
|
220
|
-
<report>scm</report>
|
221
|
-
</reports>
|
222
|
-
</reportSet>
|
223
|
-
</reportSets>
|
224
|
-
</plugin>
|
225
|
-
<plugin>
|
226
|
-
<groupId>org.apache.maven.plugins</groupId>
|
227
|
-
<artifactId>maven-javadoc-plugin</artifactId>
|
228
|
-
<version>2.8.1</version>
|
229
|
-
<configuration>
|
230
|
-
</configuration>
|
231
|
-
</plugin>
|
232
|
-
<plugin>
|
233
|
-
<groupId>org.apache.maven.plugins</groupId>
|
234
|
-
<artifactId>maven-surefire-report-plugin</artifactId>
|
235
|
-
<version>2.12.3</version>
|
236
|
-
</plugin>
|
237
|
-
</plugins>
|
238
|
-
</reporting>
|
239
134
|
|
240
135
|
</project>
|
metadata
CHANGED
@@ -1,169 +1,89 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: naether
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.10.0
|
6
6
|
platform: java
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Michael Guymon
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: rake
|
17
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.9.2
|
23
|
-
requirement: *id001
|
24
|
-
prerelease: false
|
25
|
-
type: :development
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rspec
|
28
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
|
-
requirements:
|
31
|
-
- - ">"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.9.0
|
34
|
-
requirement: *id002
|
35
|
-
prerelease: false
|
36
|
-
type: :development
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: bundler
|
39
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ">"
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: 1.0.0
|
45
|
-
requirement: *id003
|
46
|
-
prerelease: false
|
47
|
-
type: :development
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: jeweler
|
50
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
|
-
requirements:
|
53
|
-
- - ">"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 1.5.2
|
56
|
-
requirement: *id004
|
57
|
-
prerelease: false
|
58
|
-
type: :development
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: yard
|
61
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
|
-
requirements:
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: "0"
|
67
|
-
requirement: *id005
|
68
|
-
prerelease: false
|
69
|
-
type: :development
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: kramdown
|
72
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: "0"
|
78
|
-
requirement: *id006
|
79
|
-
prerelease: false
|
80
|
-
type: :development
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: jruby-openssl
|
83
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: "0"
|
89
|
-
requirement: *id007
|
90
|
-
prerelease: false
|
91
|
-
type: :development
|
12
|
+
date: 2012-10-15 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
92
14
|
description: Java dependency resolver using Maven's Aether
|
93
15
|
email: michael@tobedevoured.com
|
94
16
|
executables: []
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
17
|
+
extensions:
|
18
|
+
- Rakefile
|
19
|
+
extra_rdoc_files:
|
20
|
+
- README.md
|
21
|
+
files:
|
22
|
+
- LICENSE
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
25
|
+
- VERSION
|
26
|
+
- core-0.10.0.jar
|
27
|
+
- doc/Naether.html
|
28
|
+
- doc/Naether/Bootstrap.html
|
29
|
+
- doc/Naether/Configurator.html
|
30
|
+
- doc/Naether/Java.html
|
31
|
+
- doc/Naether/Java/JRuby.html
|
32
|
+
- doc/Naether/Java/Ruby.html
|
33
|
+
- doc/Naether/Maven.html
|
34
|
+
- doc/Naether/Notation.html
|
35
|
+
- doc/_index.html
|
36
|
+
- doc/class_list.html
|
37
|
+
- doc/css/common.css
|
38
|
+
- doc/css/full_list.css
|
39
|
+
- doc/css/style.css
|
40
|
+
- doc/file.README.html
|
41
|
+
- doc/file_list.html
|
42
|
+
- doc/frames.html
|
43
|
+
- doc/index.html
|
44
|
+
- doc/js/app.js
|
45
|
+
- doc/js/full_list.js
|
46
|
+
- doc/js/jquery.js
|
47
|
+
- doc/method_list.html
|
48
|
+
- doc/top-level-namespace.html
|
49
|
+
- jar_dependencies.yml
|
50
|
+
- lib/naether.rb
|
51
|
+
- lib/naether/bootstrap.rb
|
52
|
+
- lib/naether/configuration.rb
|
53
|
+
- lib/naether/java.rb
|
54
|
+
- lib/naether/java/jruby.rb
|
55
|
+
- lib/naether/java/ruby.rb
|
56
|
+
- lib/naether/maven.rb
|
57
|
+
- lib/naether/notation.rb
|
58
|
+
- naether.gemspec
|
59
|
+
- pom.xml
|
138
60
|
homepage: http://github.com/mguymon/naether
|
139
|
-
licenses:
|
140
|
-
|
141
|
-
post_install_message:
|
61
|
+
licenses:
|
62
|
+
- Apache
|
63
|
+
post_install_message:
|
142
64
|
rdoc_options: []
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
hash: 2
|
74
|
+
version: '0'
|
147
75
|
none: false
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
- 0
|
154
|
-
version: "0"
|
155
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
156
81
|
none: false
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: "0"
|
161
82
|
requirements: []
|
162
|
-
|
163
83
|
rubyforge_project: naether
|
164
84
|
rubygems_version: 1.8.24
|
165
|
-
signing_key:
|
85
|
+
signing_key:
|
166
86
|
specification_version: 3
|
167
87
|
summary: Java dependency resolver using Maven's Aether
|
168
88
|
test_files: []
|
169
|
-
|
89
|
+
...
|