naether 0.13.4-java → 0.13.5-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/{core-0.13.4.jar → core-0.13.5.jar} +0 -0
- data/doc/Naether.html +476 -0
- data/doc/Naether/Bootstrap.html +1111 -0
- data/doc/Naether/Configurator.html +503 -0
- data/doc/Naether/Java.html +1207 -0
- data/doc/Naether/Java/JRuby.html +1208 -0
- data/doc/Naether/Java/Ruby.html +1330 -0
- data/doc/Naether/Maven.html +1391 -0
- data/doc/Naether/Notation.html +705 -0
- data/doc/Naether/Runtime.html +2967 -0
- data/doc/_index.html +206 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +199 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +199 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +623 -0
- data/doc/top-level-namespace.html +112 -0
- data/jar_dependencies.yml +4 -3
- data/naether.gemspec +97 -0
- data/pom.xml +8 -2
- metadata +26 -2
@@ -0,0 +1,199 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
|
6
|
+
<title>
|
7
|
+
File: README
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: README</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'><h1 id="naether">Naether</h1>
|
65
|
+
|
66
|
+
<p><a href="https://travis-ci.org/mguymon/naether"><img src="https://travis-ci.org/mguymon/naether.png?branch=master" alt="Build Status" /></a></p>
|
67
|
+
|
68
|
+
<p>Naether is a Java Dependency Resolver using Maven’s <a href="https://github.com/sonatype/sonatype-aether">Aether</a>
|
69
|
+
that can be used by Ruby or Java.</p>
|
70
|
+
|
71
|
+
<p><a href="https://github.com/mguymon/naether">https://github.com/mguymon/naether</a></p>
|
72
|
+
|
73
|
+
<table>
|
74
|
+
<tbody>
|
75
|
+
<tr>
|
76
|
+
<td><a href="http://rubydoc.info/gems/naether/frames">RDoc</a></td>
|
77
|
+
<td><a href="http://mguymon.github.com/naether/apidocs/index.html">JavaDoc</a></td>
|
78
|
+
<td><a href="https://github.com/mguymon/naether/wiki">Wiki</a></td>
|
79
|
+
</tr>
|
80
|
+
</tbody>
|
81
|
+
</table>
|
82
|
+
|
83
|
+
<h2 id="install">Install</h2>
|
84
|
+
|
85
|
+
<h3 id="ruby">Ruby</h3>
|
86
|
+
|
87
|
+
<p>JRuby is natively supported. Vanilla Ruby uses <a href="http://rjb.rubyforge.org">Rjb</a> to proxy over JNI.</p>
|
88
|
+
|
89
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_naether'>naether</span>
|
90
|
+
</code></pre>
|
91
|
+
|
92
|
+
<p>The jar dependencies for Naether will automatically be downloaded when the gem installs.</p>
|
93
|
+
|
94
|
+
<h3 id="java">Java</h3>
|
95
|
+
|
96
|
+
<pre class="code ruby"><code class="ruby"><dependency>
|
97
|
+
<groupId>com.tobedevoured.naether</groupId>
|
98
|
+
<artifactId>naether</artifactId>
|
99
|
+
<version>0.13.4</version>
|
100
|
+
</dependency>
|
101
|
+
</code></pre>
|
102
|
+
|
103
|
+
<p>May have to add the Sonatype Repo if the sync to Maven Central is slow.</p>
|
104
|
+
|
105
|
+
<pre class="code ruby"><code class="ruby"><repositories>
|
106
|
+
<repository>
|
107
|
+
<id>oss.sonatype.org</id>
|
108
|
+
<name>Sonatype Repository</name>
|
109
|
+
<url>https://oss.sonatype.org/content/groups/public</url>
|
110
|
+
</repository>
|
111
|
+
</repositories>
|
112
|
+
</code></pre>
|
113
|
+
|
114
|
+
<h2 id="usage">Usage</h2>
|
115
|
+
|
116
|
+
<h3 id="ruby-1">Ruby</h3>
|
117
|
+
|
118
|
+
<p>All of the Naether dependencies are loaded via a Custom ClassLoader.</p>
|
119
|
+
|
120
|
+
<h4 id="bootstraping">Bootstraping</h4>
|
121
|
+
|
122
|
+
<p>Naether <a href="https://github.com/mguymon/naether/blob/master/jar_dependencies.yml">jar dependences</a>
|
123
|
+
must be loaded for Naether to work. This is easily done with the <a href="http://rdoc.info/gems/naether/Naether/Bootstrap">bootstrap helper</a></p>
|
124
|
+
|
125
|
+
<pre class="code ruby"><code class="ruby"><span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_bootstrap_local_repo'>bootstrap_local_repo</span>
|
126
|
+
</code></pre>
|
127
|
+
|
128
|
+
<h4 id="resolving-dependencies">Resolving Dependencies</h4>
|
129
|
+
|
130
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rubygems</span><span class='tstring_end'>'</span></span>
|
131
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>naether</span><span class='tstring_end'>'</span></span>
|
132
|
+
|
133
|
+
<span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_bootstrap_local_repo'>bootstrap_local_repo</span>
|
134
|
+
<span class='id identifier rubyid_naether'>naether</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span>
|
135
|
+
<span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-classic:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>junit:junit:jar:4.8.2</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
136
|
+
<span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_resolve_dependencies'>resolve_dependencies</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
137
|
+
|
138
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_dependencies_notation'>dependencies_notation</span>
|
139
|
+
</code></pre>
|
140
|
+
|
141
|
+
<p>Will output</p>
|
142
|
+
|
143
|
+
<pre class="code ruby"><code class="ruby"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-core:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
144
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-classic:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
145
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>junit:junit:jar:4.8.2</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
146
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>org.slf4j:slf4j-api:jar:1.6.1</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
147
|
+
</code></pre>
|
148
|
+
|
149
|
+
<p><a href="https://github.com/mguymon/naether/wiki/Ruby-Resolving-Dependencies">Additional documentation on Resolving Dependencies</a></p>
|
150
|
+
|
151
|
+
<h3 id="java-1">Java</h3>
|
152
|
+
|
153
|
+
<h4 id="resolving-dependencies-1">Resolving Dependencies</h4>
|
154
|
+
<pre class="code ruby"><code class="ruby">import com.tobedevoured.naether.api.Naether;
|
155
|
+
import com.tobedevoured.naether.impl.NaetherImpl;
|
156
|
+
|
157
|
+
Naether naether = new NaetherImpl();
|
158
|
+
naether.addDependency( "ch.qos.logback:logback-classic:jar:0.9.29" );
|
159
|
+
naether.addDependency( "junit:junit:jar:4.8.2" );
|
160
|
+
naether.resolveDependencies();
|
161
|
+
System.out.println( naether.getDependenciesNotation().toString() );
|
162
|
+
</code></pre>
|
163
|
+
|
164
|
+
<p>Will output:</p>
|
165
|
+
|
166
|
+
<pre class="code ruby"><code class="ruby"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-core:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
167
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-classic:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
168
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>junit:junit:jar:4.8.2</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
169
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>org.slf4j:slf4j-api:jar:1.6.1</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
170
|
+
</code></pre>
|
171
|
+
|
172
|
+
<p><a href="https://github.com/mguymon/naether/wiki/Java-Resolving-Dependencies">Additional documentation on Resolving Dependencies</a></p>
|
173
|
+
|
174
|
+
<h2 id="license">License</h2>
|
175
|
+
|
176
|
+
<p>Licensed to the Apache Software Foundation (ASF) under one or more
|
177
|
+
contributor license agreements. See the NOTICE file distributed with this
|
178
|
+
work for additional information regarding copyright ownership. The ASF
|
179
|
+
licenses this file to you under the Apache License, Version 2.0 (the
|
180
|
+
“License”); you may not use this file except in compliance with the License.
|
181
|
+
You may obtain a copy of the License at</p>
|
182
|
+
|
183
|
+
<p>http://www.apache.org/licenses/LICENSE-2.0</p>
|
184
|
+
|
185
|
+
<p>Unless required by applicable law or agreed to in writing, software
|
186
|
+
distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
|
187
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
188
|
+
License for the specific language governing permissions and limitations under
|
189
|
+
the License.</p>
|
190
|
+
</div></div>
|
191
|
+
|
192
|
+
<div id="footer">
|
193
|
+
Generated on Thu Mar 6 23:10:06 2014 by
|
194
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
195
|
+
0.8.7.3 (ruby-1.9.3).
|
196
|
+
</div>
|
197
|
+
|
198
|
+
</body>
|
199
|
+
</html>
|
data/doc/file_list.html
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<title>File List</title>
|
19
|
+
<base id="base_target" target="_parent" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<script type="text/javascript" charset="utf-8">
|
23
|
+
if (window.top.frames.main) {
|
24
|
+
document.getElementById('base_target').target = 'main';
|
25
|
+
document.body.className = 'frames';
|
26
|
+
}
|
27
|
+
</script>
|
28
|
+
<div id="content">
|
29
|
+
<h1 id="full_list_header">File List</h1>
|
30
|
+
<div id="nav">
|
31
|
+
|
32
|
+
<span><a target="_self" href="class_list.html">
|
33
|
+
Classes
|
34
|
+
</a></span>
|
35
|
+
|
36
|
+
<span><a target="_self" href="method_list.html">
|
37
|
+
Methods
|
38
|
+
</a></span>
|
39
|
+
|
40
|
+
<span><a target="_self" href="file_list.html">
|
41
|
+
Files
|
42
|
+
</a></span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
<div id="search">Search: <input type="text" /></div>
|
46
|
+
|
47
|
+
<ul id="full_list" class="file">
|
48
|
+
|
49
|
+
|
50
|
+
<li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
|
51
|
+
|
52
|
+
|
53
|
+
</ul>
|
54
|
+
</div>
|
55
|
+
</body>
|
56
|
+
</html>
|
data/doc/frames.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
+
<title>Documentation by YARD 0.8.7.3</title>
|
8
|
+
</head>
|
9
|
+
<script type="text/javascript" charset="utf-8">
|
10
|
+
window.onload = function() {
|
11
|
+
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
12
|
+
var name = match ? match[1] : 'index.html';
|
13
|
+
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
14
|
+
document.writeln('<frameset cols="20%,*">' +
|
15
|
+
'<frame name="list" src="class_list.html" />' +
|
16
|
+
'<frame name="main" src="' + escape(name) + '" />' +
|
17
|
+
'</frameset>');
|
18
|
+
}
|
19
|
+
</script>
|
20
|
+
<noscript>
|
21
|
+
<frameset cols="20%,*">
|
22
|
+
<frame name="list" src="class_list.html" />
|
23
|
+
<frame name="main" src="index.html" />
|
24
|
+
</frameset>
|
25
|
+
</noscript>
|
26
|
+
</html>
|
data/doc/index.html
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
|
6
|
+
<title>
|
7
|
+
File: README
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: README</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'><h1 id="naether">Naether</h1>
|
65
|
+
|
66
|
+
<p><a href="https://travis-ci.org/mguymon/naether"><img src="https://travis-ci.org/mguymon/naether.png?branch=master" alt="Build Status" /></a></p>
|
67
|
+
|
68
|
+
<p>Naether is a Java Dependency Resolver using Maven’s <a href="https://github.com/sonatype/sonatype-aether">Aether</a>
|
69
|
+
that can be used by Ruby or Java.</p>
|
70
|
+
|
71
|
+
<p><a href="https://github.com/mguymon/naether">https://github.com/mguymon/naether</a></p>
|
72
|
+
|
73
|
+
<table>
|
74
|
+
<tbody>
|
75
|
+
<tr>
|
76
|
+
<td><a href="http://rubydoc.info/gems/naether/frames">RDoc</a></td>
|
77
|
+
<td><a href="http://mguymon.github.com/naether/apidocs/index.html">JavaDoc</a></td>
|
78
|
+
<td><a href="https://github.com/mguymon/naether/wiki">Wiki</a></td>
|
79
|
+
</tr>
|
80
|
+
</tbody>
|
81
|
+
</table>
|
82
|
+
|
83
|
+
<h2 id="install">Install</h2>
|
84
|
+
|
85
|
+
<h3 id="ruby">Ruby</h3>
|
86
|
+
|
87
|
+
<p>JRuby is natively supported. Vanilla Ruby uses <a href="http://rjb.rubyforge.org">Rjb</a> to proxy over JNI.</p>
|
88
|
+
|
89
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_naether'>naether</span>
|
90
|
+
</code></pre>
|
91
|
+
|
92
|
+
<p>The jar dependencies for Naether will automatically be downloaded when the gem installs.</p>
|
93
|
+
|
94
|
+
<h3 id="java">Java</h3>
|
95
|
+
|
96
|
+
<pre class="code ruby"><code class="ruby"><dependency>
|
97
|
+
<groupId>com.tobedevoured.naether</groupId>
|
98
|
+
<artifactId>naether</artifactId>
|
99
|
+
<version>0.13.4</version>
|
100
|
+
</dependency>
|
101
|
+
</code></pre>
|
102
|
+
|
103
|
+
<p>May have to add the Sonatype Repo if the sync to Maven Central is slow.</p>
|
104
|
+
|
105
|
+
<pre class="code ruby"><code class="ruby"><repositories>
|
106
|
+
<repository>
|
107
|
+
<id>oss.sonatype.org</id>
|
108
|
+
<name>Sonatype Repository</name>
|
109
|
+
<url>https://oss.sonatype.org/content/groups/public</url>
|
110
|
+
</repository>
|
111
|
+
</repositories>
|
112
|
+
</code></pre>
|
113
|
+
|
114
|
+
<h2 id="usage">Usage</h2>
|
115
|
+
|
116
|
+
<h3 id="ruby-1">Ruby</h3>
|
117
|
+
|
118
|
+
<p>All of the Naether dependencies are loaded via a Custom ClassLoader.</p>
|
119
|
+
|
120
|
+
<h4 id="bootstraping">Bootstraping</h4>
|
121
|
+
|
122
|
+
<p>Naether <a href="https://github.com/mguymon/naether/blob/master/jar_dependencies.yml">jar dependences</a>
|
123
|
+
must be loaded for Naether to work. This is easily done with the <a href="http://rdoc.info/gems/naether/Naether/Bootstrap">bootstrap helper</a></p>
|
124
|
+
|
125
|
+
<pre class="code ruby"><code class="ruby"><span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_bootstrap_local_repo'>bootstrap_local_repo</span>
|
126
|
+
</code></pre>
|
127
|
+
|
128
|
+
<h4 id="resolving-dependencies">Resolving Dependencies</h4>
|
129
|
+
|
130
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rubygems</span><span class='tstring_end'>'</span></span>
|
131
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>naether</span><span class='tstring_end'>'</span></span>
|
132
|
+
|
133
|
+
<span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_bootstrap_local_repo'>bootstrap_local_repo</span>
|
134
|
+
<span class='id identifier rubyid_naether'>naether</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span>
|
135
|
+
<span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-classic:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>junit:junit:jar:4.8.2</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
136
|
+
<span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_resolve_dependencies'>resolve_dependencies</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
137
|
+
|
138
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_dependencies_notation'>dependencies_notation</span>
|
139
|
+
</code></pre>
|
140
|
+
|
141
|
+
<p>Will output</p>
|
142
|
+
|
143
|
+
<pre class="code ruby"><code class="ruby"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-core:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
144
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-classic:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
145
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>junit:junit:jar:4.8.2</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
146
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>org.slf4j:slf4j-api:jar:1.6.1</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
147
|
+
</code></pre>
|
148
|
+
|
149
|
+
<p><a href="https://github.com/mguymon/naether/wiki/Ruby-Resolving-Dependencies">Additional documentation on Resolving Dependencies</a></p>
|
150
|
+
|
151
|
+
<h3 id="java-1">Java</h3>
|
152
|
+
|
153
|
+
<h4 id="resolving-dependencies-1">Resolving Dependencies</h4>
|
154
|
+
<pre class="code ruby"><code class="ruby">import com.tobedevoured.naether.api.Naether;
|
155
|
+
import com.tobedevoured.naether.impl.NaetherImpl;
|
156
|
+
|
157
|
+
Naether naether = new NaetherImpl();
|
158
|
+
naether.addDependency( "ch.qos.logback:logback-classic:jar:0.9.29" );
|
159
|
+
naether.addDependency( "junit:junit:jar:4.8.2" );
|
160
|
+
naether.resolveDependencies();
|
161
|
+
System.out.println( naether.getDependenciesNotation().toString() );
|
162
|
+
</code></pre>
|
163
|
+
|
164
|
+
<p>Will output:</p>
|
165
|
+
|
166
|
+
<pre class="code ruby"><code class="ruby"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-core:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
167
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ch.qos.logback:logback-classic:jar:0.9.29</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
168
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>junit:junit:jar:4.8.2</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
169
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>org.slf4j:slf4j-api:jar:1.6.1</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
170
|
+
</code></pre>
|
171
|
+
|
172
|
+
<p><a href="https://github.com/mguymon/naether/wiki/Java-Resolving-Dependencies">Additional documentation on Resolving Dependencies</a></p>
|
173
|
+
|
174
|
+
<h2 id="license">License</h2>
|
175
|
+
|
176
|
+
<p>Licensed to the Apache Software Foundation (ASF) under one or more
|
177
|
+
contributor license agreements. See the NOTICE file distributed with this
|
178
|
+
work for additional information regarding copyright ownership. The ASF
|
179
|
+
licenses this file to you under the Apache License, Version 2.0 (the
|
180
|
+
“License”); you may not use this file except in compliance with the License.
|
181
|
+
You may obtain a copy of the License at</p>
|
182
|
+
|
183
|
+
<p>http://www.apache.org/licenses/LICENSE-2.0</p>
|
184
|
+
|
185
|
+
<p>Unless required by applicable law or agreed to in writing, software
|
186
|
+
distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
|
187
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
188
|
+
License for the specific language governing permissions and limitations under
|
189
|
+
the License.</p>
|
190
|
+
</div></div>
|
191
|
+
|
192
|
+
<div id="footer">
|
193
|
+
Generated on Thu Mar 6 23:10:06 2014 by
|
194
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
195
|
+
0.8.7.3 (ruby-1.9.3).
|
196
|
+
</div>
|
197
|
+
|
198
|
+
</body>
|
199
|
+
</html>
|