naether 0.10.1-java → 0.11.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,17 +1,12 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- platform = $platform || RUBY_PLATFORM[/java/] || 'ruby'
4
- if platform != 'java'
5
- gem 'rjb', '~> 1.4.0'
6
- end
3
+
4
+ gem 'rjb', '~> 1.4.0', platform: :ruby
7
5
 
8
6
  group :development do
9
7
  gem "rspec", "> 2.9.0"
10
8
  gem "jeweler", "~> 1.8.0"
11
9
  gem "yard"
12
10
  gem "kramdown"
13
-
14
- if platform == 'java'
15
- gem 'jruby-openssl'
16
- end
11
+ gem 'jruby-openssl', platform: :jruby
17
12
  end
@@ -11,11 +11,13 @@ GEM
11
11
  rdoc
12
12
  jruby-openssl (0.7.7)
13
13
  bouncy-castle-java (>= 1.5.0146.1)
14
+ json (1.7.5)
14
15
  json (1.7.5-java)
15
16
  kramdown (0.14.0)
16
17
  rake (0.9.2.2)
17
18
  rdoc (3.12)
18
19
  json (~> 1.4)
20
+ rjb (1.4.8)
19
21
  rspec (2.11.0)
20
22
  rspec-core (~> 2.11.0)
21
23
  rspec-expectations (~> 2.11.0)
@@ -24,14 +26,16 @@ GEM
24
26
  rspec-expectations (2.11.3)
25
27
  diff-lcs (~> 1.1.3)
26
28
  rspec-mocks (2.11.3)
27
- yard (0.8.3)
29
+ yard (0.8.2.1)
28
30
 
29
31
  PLATFORMS
30
32
  java
33
+ ruby
31
34
 
32
35
  DEPENDENCIES
33
36
  jeweler (~> 1.8.0)
34
37
  jruby-openssl
35
38
  kramdown
39
+ rjb (~> 1.4.0)
36
40
  rspec (> 2.9.0)
37
41
  yard
data/README.md CHANGED
@@ -11,7 +11,7 @@ that can be used by Ruby or Java.
11
11
 
12
12
  ### Ruby
13
13
 
14
- JRuby 1.6.8 is natively supported. Ruby 1.8.7 and 1.9.3 use [Rjb](http://rjb.rubyforge.org) to proxy over JNI.
14
+ JRuby 1.6.8 is natively supported. 1.9.3 uses [Rjb](http://rjb.rubyforge.org) to proxy over JNI.
15
15
 
16
16
  gem install naether
17
17
 
@@ -50,15 +50,15 @@ must be loaded for Naether to work. This is easily done with the [bootstrap help
50
50
 
51
51
  #### Resolving Dependencies
52
52
 
53
- require 'rubygems
53
+ require 'rubygems'
54
54
  require 'naether'
55
55
 
56
56
  Naether::Bootstrap.bootstrap_local_repo
57
- naether = Naether.new
57
+ naether = Naether.create
58
58
  naether.dependencies = [ "ch.qos.logback:logback-classic:jar:0.9.29", "junit:junit:jar:4.8.2" ]
59
- naether.resolve_dependencies().
59
+ naether.resolve_dependencies()
60
60
 
61
- puts naether.dependences_notation
61
+ puts naether.dependencies_notation
62
62
 
63
63
  Will output
64
64
 
@@ -72,8 +72,10 @@ Will output
72
72
  ### Java
73
73
 
74
74
  #### Resolving Dependencies
75
+ import com.tobedevoured.naether.api.Naether;
76
+ import com.tobedevoured.naether.impl.NaetherImpl;
75
77
 
76
- Naether naether = new Naether();
78
+ Naether naether = new NaetherImpl();
77
79
  naether.addDependency( "ch.qos.logback:logback-classic:jar:0.9.29" );
78
80
  naether.addDependency( "junit:junit:jar:4.8.2" );
79
81
  naether.resolveDependencies();
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.1
1
+ 0.11.0
Binary file
@@ -4,9 +4,9 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Class: Naether
7
+ Module: Naether
8
8
 
9
- &mdash; Documentation by YARD 0.8.3
9
+ &mdash; Documentation by YARD 0.8.2.1
10
10
 
11
11
  </title>
12
12
 
@@ -63,7 +63,7 @@
63
63
 
64
64
  <iframe id="search_frame"></iframe>
65
65
 
66
- <div id="content"><h1>Class: Naether
66
+ <div id="content"><h1>Module: Naether
67
67
 
68
68
 
69
69
 
@@ -71,21 +71,6 @@
71
71
 
72
72
  <dl class="box">
73
73
 
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Naether</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
74
 
90
75
 
91
76
 
@@ -93,46 +78,21 @@
93
78
 
94
79
 
95
80
 
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/naether.rb<span class="defines">,<br />
98
- lib/naether/java.rb,<br /> lib/naether/maven.rb,<br /> lib/naether/notation.rb,<br /> lib/naether/bootstrap.rb,<br /> lib/naether/java/ruby.rb,<br /> lib/naether/java/jruby.rb,<br /> lib/naether/configuration.rb</span>
81
+ <dt class="r1 last">Defined in:</dt>
82
+ <dd class="r1 last">lib/naether.rb<span class="defines">,<br />
83
+ lib/naether/java.rb,<br /> lib/naether/maven.rb,<br /> lib/naether/runtime.rb,<br /> lib/naether/notation.rb,<br /> lib/naether/java/ruby.rb,<br /> lib/naether/java/jruby.rb,<br /> lib/naether/configuration.rb</span>
99
84
  </dd>
100
85
 
101
86
  </dl>
102
87
  <div class="clear"></div>
103
88
 
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
- <p class="tag_title">Author:</p>
113
- <ul class="author">
114
-
115
- <li>
116
-
117
-
118
-
119
-
120
-
121
- <div class='inline'>
122
- <p>Michael Guymon</p>
123
- </div>
124
-
125
- </li>
126
-
127
- </ul>
128
-
129
- </div><h2>Defined Under Namespace</h2>
89
+ <h2>Defined Under Namespace</h2>
130
90
  <p class="children">
131
91
 
132
92
 
133
93
 
134
94
 
135
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Naether/Bootstrap.html" title="Naether::Bootstrap (class)">Bootstrap</a></span>, <span class='object_link'><a href="Naether/Configurator.html" title="Naether::Configurator (class)">Configurator</a></span>, <span class='object_link'><a href="Naether/Java.html" title="Naether::Java (class)">Java</a></span>, <span class='object_link'><a href="Naether/Maven.html" title="Naether::Maven (class)">Maven</a></span>, <span class='object_link'><a href="Naether/Notation.html" title="Naether::Notation (class)">Notation</a></span>
95
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Naether/s_20Configurat.html" title="Naether::s Configurat (class)">s Configurat</a></span>, <span class='object_link'><a href="Naether/s_20Ja.html" title="Naether::s Ja (class)">s Ja</a></span>, <span class='object_link'><a href="Naether/s_20Mav.html" title="Naether::s Mav (class)">s Mav</a></span>, <span class='object_link'><a href="Naether/s_20Notati.html" title="Naether::s Notati (class)">s Notati</a></span>, <span class='object_link'><a href="Naether/s_20Runti.html" title="Naether::s Runti (class)">s Runti</a></span>
136
96
 
137
97
 
138
98
  </p>
@@ -140,40 +100,6 @@
140
100
 
141
101
 
142
102
 
143
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
144
- <ul class="summary">
145
-
146
- <li class="public ">
147
- <span class="summary_signature">
148
-
149
- <a href="#resolver-instance_method" title="#resolver (instance method)">- (Object) <strong>resolver</strong> </a>
150
-
151
-
152
-
153
- </span>
154
-
155
-
156
-
157
-
158
- <span class="note title readonly">readonly</span>
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <span class="summary_desc"><div class='inline'>
169
- <p>Returns the value of attribute resolver.</p>
170
- </div></span>
171
-
172
- </li>
173
-
174
-
175
- </ul>
176
-
177
103
 
178
104
 
179
105
 
@@ -188,7 +114,7 @@
188
114
  <li class="public ">
189
115
  <span class="summary_signature">
190
116
 
191
- <a href="#bootstrap_dependencies-class_method" title="bootstrap_dependencies (class method)">+ (Object) <strong>bootstrap_dependencies</strong>(dep_file = nil) </a>
117
+ <a href="#create-class_method" title="create (class method)">+ (Object) <strong>create</strong> </a>
192
118
 
193
119
 
194
120
 
@@ -202,9 +128,7 @@
202
128
 
203
129
 
204
130
 
205
- <span class="summary_desc"><div class='inline'>
206
- <p>List of Java dependencies needed to bootstrap Naether.</p>
207
- </div></span>
131
+ <span class="summary_desc"><div class='inline'></div></span>
208
132
 
209
133
  </li>
210
134
 
@@ -212,7 +136,7 @@
212
136
  <li class="public ">
213
137
  <span class="summary_signature">
214
138
 
215
- <a href="#create_from_jars-class_method" title="create_from_jars (class method)">+ (Naether) <strong>create_from_jars</strong>(jars) </a>
139
+ <a href="#create_from_jars-class_method" title="create_from_jars (class method)">+ (Naether) <strong>create_from_jars</strong>(f cr) </a>
216
140
 
217
141
 
218
142
 
@@ -226,9 +150,7 @@
226
150
 
227
151
 
228
152
 
229
- <span class="summary_desc"><div class='inline'>
230
- <p>Loads all jars creates a new instance of Naether.</p>
231
- </div></span>
153
+ <span class="summary_desc"><div class='inline'></div></span>
232
154
 
233
155
  </li>
234
156
 
@@ -250,3045 +172,135 @@
250
172
 
251
173
 
252
174
 
253
- <span class="summary_desc"><div class='inline'>
254
- <p>Helper for platform detection.</p>
255
- </div></span>
175
+ <span class="summary_desc"><div class='inline'></div></span>
256
176
 
257
177
  </li>
258
178
 
259
179
 
260
180
  </ul>
261
181
 
262
- <h2>
263
- Instance Method Summary
264
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
265
- </h2>
266
-
267
- <ul class="summary">
268
-
269
- <li class="public ">
270
- <span class="summary_signature">
271
-
272
- <a href="#add_build_artifact-instance_method" title="#add_build_artifact (instance method)">- (Object) <strong>add_build_artifact</strong>(notation, path, pom = nil) </a>
273
-
274
182
 
275
-
276
- </span>
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
183
 
285
-
286
- <span class="summary_desc"><div class='inline'>
287
- <p>Add a local Build Artifact, that will be used in the Dependency Resolution.</p>
288
- </div></span>
289
-
290
- </li>
291
184
 
292
-
293
- <li class="public ">
294
- <span class="summary_signature">
295
-
296
- <a href="#add_dependency-instance_method" title="#add_dependency (instance method)">- (Object) <strong>add_dependency</strong>(dependency) </a>
297
-
185
+ <div id="class_method_details" class="method_details_list">
186
+ <h2>Class Method Details</h2>
298
187
 
299
188
 
300
- </span>
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
189
+ <div class="method_details first">
190
+ <h3 class="signature first" id="create-class_method">
309
191
 
310
- <span class="summary_desc"><div class='inline'>
311
- <p>Add a dependency of org.sonatype.aether.graph.Dependency.</p>
312
- </div></span>
192
+ + (<tt>Object</tt>) <strong>create</strong>
313
193
 
314
- </li>
315
194
 
316
-
317
- <li class="public ">
318
- <span class="summary_signature">
319
-
320
- <a href="#add_notation_dependency-instance_method" title="#add_notation_dependency (instance method)">- (Object) <strong>add_notation_dependency</strong>(notation, scope = 'compile') </a>
321
-
322
-
323
-
324
- </span>
325
-
326
-
327
-
328
-
329
-
330
-
331
195
 
332
196
 
333
197
 
334
- <span class="summary_desc"><div class='inline'>
335
- <p>Add a dependency.</p>
336
- </div></span>
337
-
338
- </li>
339
-
340
-
341
- <li class="public ">
342
- <span class="summary_signature">
343
-
344
- <a href="#add_pom_dependencies-instance_method" title="#add_pom_dependencies (instance method)">- (Object) <strong>add_pom_dependencies</strong>(pom_path, scopes = ['compile']) </a>
345
-
198
+ </h3><table class="source_code">
199
+ <tr>
200
+ <td>
201
+ <pre class="lines">
346
202
 
347
-
348
- </span>
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
203
 
357
-
358
- <span class="summary_desc"><div class='inline'>
359
- <p>Add dependencies from a Maven POM.</p>
360
- </div></span>
361
-
362
- </li>
204
+ 57
205
+ 58
206
+ 59
207
+ 60
208
+ 61
209
+ 62</pre>
210
+ </td>
211
+ <td>
212
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 57</span>
363
213
 
364
-
365
- <li class="public ">
366
- <span class="summary_signature">
367
-
368
- <a href="#add_remote_repository-instance_method" title="#add_remote_repository (instance method)">- (Object) <strong>add_remote_repository</strong>(url, username = nil, password = nil) </a>
369
-
214
+ s( jars )
215
+ create
216
+ end
370
217
 
218
+ def create
219
+ require &quot;#{File.dirname(__FILE__)}</pre>
220
+ </td>
221
+ </tr>
222
+ </table>
223
+ </div>
371
224
 
372
- </span>
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
225
+ <div class="method_details ">
226
+ <h3 class="signature " id="create_from_jars-class_method">
381
227
 
382
- <span class="summary_desc"><div class='inline'>
383
- <p>Add remote repository.</p>
384
- </div></span>
228
+ + (<tt><span class='object_link'><a href="" title="Naether (module)">Naether</a></span></tt>) <strong>create_from_jars</strong>(f cr)
385
229
 
386
- </li>
387
-
388
-
389
- <li class="public ">
390
- <span class="summary_signature">
391
-
392
- <a href="#build_artifacts-instance_method" title="#build_artifacts (instance method)">- (Array) <strong>build_artifacts</strong> </a>
393
-
394
230
 
395
-
396
- </span>
397
-
398
-
399
-
400
-
401
-
402
-
403
231
 
404
232
 
405
233
 
406
- <span class="summary_desc"><div class='inline'>
407
- <p>Get Build Artifacts.</p>
408
- </div></span>
409
-
410
- </li>
411
-
412
-
413
- <li class="public ">
414
- <span class="summary_signature">
415
-
416
- <a href="#build_artifacts%3D-instance_method" title="#build_artifacts= (instance method)">- (Object) <strong>build_artifacts=</strong>(artifacts) </a>
417
-
418
-
234
+ </h3><div class="docstring">
235
+ <div class="discussion">
419
236
 
420
- </span>
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
237
 
238
+ </div>
239
+ </div>
240
+ <div class="tags">
429
241
 
430
- <span class="summary_desc"><div class='inline'>
431
- <p>Set local Build Artifacts, that will be used in the Dependency Resolution.</p>
432
- </div></span>
242
+ <p class="tag_title">Returns:</p>
243
+ <ul class="return">
433
244
 
434
- </li>
435
-
245
+ <li>
436
246
 
437
- <li class="public ">
438
- <span class="summary_signature">
439
-
440
- <a href="#clear_remote_repositories-instance_method" title="#clear_remote_repositories (instance method)">- (Object) <strong>clear_remote_repositories</strong> </a>
441
-
442
-
443
-
444
- </span>
445
-
446
-
447
-
448
-
449
-
450
-
247
+
248
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Naether (module)">Naether</a></span></tt>)</span>
249
+
250
+
251
+
252
+ </li>
451
253
 
254
+ </ul>
452
255
 
453
-
454
- <span class="summary_desc"><div class='inline'>
455
- <p>Clear all remote repositories.</p>
456
- </div></span>
457
-
458
- </li>
256
+ </div><table class="source_code">
257
+ <tr>
258
+ <td>
259
+ <pre class="lines">
459
260
 
460
-
461
- <li class="public ">
462
- <span class="summary_signature">
463
-
464
- <a href="#dependencies-instance_method" title="#dependencies (instance method)">- (Array) <strong>dependencies</strong> </a>
465
-
466
261
 
262
+ 51
263
+ 52
264
+ 53
265
+ 54</pre>
266
+ </td>
267
+ <td>
268
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 51</span>
269
+
270
+ eturn [Naether]
271
+ def create_from_jars( jars )
272
+ require &quot;#{File.dirname(__FILE__)}/naether/java&quot;
273
+ Naether::Java.internal_loa</pre>
274
+ </td>
275
+ </tr>
276
+ </table>
277
+ </div>
467
278
 
468
- </span>
469
-
470
-
471
-
472
-
473
-
279
+ <div class="method_details ">
280
+ <h3 class="signature " id="platform-class_method">
474
281
 
282
+ + (<tt>Object</tt>) <strong>platform</strong>
475
283
 
476
284
 
477
285
 
478
- <span class="summary_desc"><div class='inline'>
479
- <p>Get array of dependencies.</p>
480
- </div></span>
286
+
481
287
 
482
- </li>
288
+ </h3><table class="source_code">
289
+ <tr>
290
+ <td>
291
+ <pre class="lines">
483
292
 
484
-
485
- <li class="public ">
486
- <span class="summary_signature">
487
-
488
- <a href="#dependencies%3D-instance_method" title="#dependencies= (instance method)">- (Object) <strong>dependencies=</strong>(dependencies) </a>
489
-
490
293
 
491
-
492
- </span>
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
- <span class="summary_desc"><div class='inline'>
503
- <p>Set the dependencies.</p>
504
- </div></span>
505
-
506
- </li>
507
-
508
-
509
- <li class="public ">
510
- <span class="summary_signature">
511
-
512
- <a href="#dependencies_classpath-instance_method" title="#dependencies_classpath (instance method)">- (String) <strong>dependencies_classpath</strong> </a>
513
-
514
-
515
-
516
- </span>
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
- <span class="summary_desc"><div class='inline'>
527
- <p>Convert dependencies to Classpath friendly string.</p>
528
- </div></span>
529
-
530
- </li>
531
-
532
-
533
- <li class="public ">
534
- <span class="summary_signature">
535
-
536
- <a href="#dependencies_graph-instance_method" title="#dependencies_graph (instance method)">- (Hash) <strong>dependencies_graph</strong>(nodes = nil) </a>
537
-
538
-
539
-
540
- </span>
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
- <span class="summary_desc"><div class='inline'>
551
- <p>Dependencies as a Graph of nested Hashes.</p>
552
- </div></span>
553
-
554
- </li>
555
-
556
-
557
- <li class="public ">
558
- <span class="summary_signature">
559
-
560
- <a href="#dependencies_notation-instance_method" title="#dependencies_notation (instance method)">- (Array&lt;String&gt;) <strong>dependencies_notation</strong> </a>
561
-
562
-
563
-
564
- </span>
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
- <span class="summary_desc"><div class='inline'>
575
- <p>Get array of dependencies as notation.</p>
576
- </div></span>
577
-
578
- </li>
579
-
580
-
581
- <li class="public ">
582
- <span class="summary_signature">
583
-
584
- <a href="#dependencies_path-instance_method" title="#dependencies_path (instance method)">- (Array&lt;Hash&gt;) <strong>dependencies_path</strong> </a>
585
-
586
-
587
-
588
- </span>
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
- <span class="summary_desc"><div class='inline'>
599
- <p>Hash of dependency paths.</p>
600
- </div></span>
601
-
602
- </li>
603
-
604
-
605
- <li class="public ">
606
- <span class="summary_signature">
607
-
608
- <a href="#deploy_artifact-instance_method" title="#deploy_artifact (instance method)">- (Object) <strong>deploy_artifact</strong>(notation, file_path, url, opts = {}) </a>
609
-
610
-
611
-
612
- </span>
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
- <span class="summary_desc"><div class='inline'>
623
- <p>Deploy artifact to remote repo url.</p>
624
- </div></span>
625
-
626
- </li>
627
-
628
-
629
- <li class="public ">
630
- <span class="summary_signature">
631
-
632
- <a href="#download_artifacts-instance_method" title="#download_artifacts (instance method)">- (Array&lt;String&gt;) <strong>download_artifacts</strong>(notations) </a>
633
-
634
-
635
-
636
- </span>
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
- <span class="summary_desc"><div class='inline'>
647
- <p>Download artifacts.</p>
648
- </div></span>
649
-
650
- </li>
651
-
652
-
653
- <li class="public ">
654
- <span class="summary_signature">
655
-
656
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Naether) <strong>initialize</strong> </a>
657
-
658
-
659
-
660
- </span>
661
-
662
-
663
- <span class="note title constructor">constructor</span>
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
- <span class="summary_desc"><div class='inline'>
673
- <p>Create new instance.</p>
674
- </div></span>
675
-
676
- </li>
677
-
678
-
679
- <li class="public ">
680
- <span class="summary_signature">
681
-
682
- <a href="#install-instance_method" title="#install (instance method)">- (Object) <strong>install</strong>(notation, pom_path = nil, jar_path = nil) </a>
683
-
684
-
685
-
686
- </span>
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
- <span class="summary_desc"><div class='inline'>
697
- <p>Install artifact or pom to local repo, must specify pom_path and/or
698
- jar_path.</p>
699
- </div></span>
700
-
701
- </li>
702
-
703
-
704
- <li class="public ">
705
- <span class="summary_signature">
706
-
707
- <a href="#load_dependencies_to_classpath-instance_method" title="#load_dependencies_to_classpath (instance method)">- (Array) <strong>load_dependencies_to_classpath</strong> </a>
708
-
709
-
710
-
711
- </span>
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
-
721
- <span class="summary_desc"><div class='inline'>
722
- <p>Load dependencies to Classpath.</p>
723
- </div></span>
724
-
725
- </li>
726
-
727
-
728
- <li class="public ">
729
- <span class="summary_signature">
730
-
731
- <a href="#local_repo_path-instance_method" title="#local_repo_path (instance method)">- (String) <strong>local_repo_path</strong> </a>
732
-
733
-
734
-
735
- </span>
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
- <span class="summary_desc"><div class='inline'>
746
- <p>Path to local maven repo.</p>
747
- </div></span>
748
-
749
- </li>
750
-
751
-
752
- <li class="public ">
753
- <span class="summary_signature">
754
-
755
- <a href="#local_repo_path%3D-instance_method" title="#local_repo_path= (instance method)">- (Object) <strong>local_repo_path=</strong>(path) </a>
756
-
757
-
758
-
759
- </span>
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
- <span class="summary_desc"><div class='inline'>
770
- <p>Set path to local maven repo.</p>
771
- </div></span>
772
-
773
- </li>
774
-
775
-
776
- <li class="public ">
777
- <span class="summary_signature">
778
-
779
- <a href="#remote_repositories-instance_method" title="#remote_repositories (instance method)">- (Array) <strong>remote_repositories</strong> </a>
780
-
781
-
782
-
783
- </span>
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
- <span class="summary_desc"><div class='inline'>
794
- <p>Get remote repositories.</p>
795
- </div></span>
796
-
797
- </li>
798
-
799
-
800
- <li class="public ">
801
- <span class="summary_signature">
802
-
803
- <a href="#remote_repository_urls-instance_method" title="#remote_repository_urls (instance method)">- (Array&lt;String&gt;) <strong>remote_repository_urls</strong> </a>
804
-
805
-
806
-
807
- </span>
808
-
809
-
810
-
811
-
812
-
813
-
814
-
815
-
816
-
817
- <span class="summary_desc"><div class='inline'>
818
- <p>Get remote repositories as urls.</p>
819
- </div></span>
820
-
821
- </li>
822
-
823
-
824
- <li class="public ">
825
- <span class="summary_signature">
826
-
827
- <a href="#resolve_dependencies-instance_method" title="#resolve_dependencies (instance method)">- (Array&lt;String&gt;) <strong>resolve_dependencies</strong>(download_artifacts = true, properties = nil) </a>
828
-
829
-
830
-
831
- </span>
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
- <span class="summary_desc"><div class='inline'>
842
- <p>Resolve dependencies.</p>
843
- </div></span>
844
-
845
- </li>
846
-
847
-
848
- <li class="public ">
849
- <span class="summary_signature">
850
-
851
- <a href="#set_log_level-instance_method" title="#set_log_level (instance method)">- (Object) <strong>set_log_level</strong>(level) </a>
852
-
853
-
854
-
855
- </span>
856
-
857
-
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
- <span class="summary_desc"><div class='inline'>
866
- <p>Set Log level for Naether Java logging.</p>
867
- </div></span>
868
-
869
- </li>
870
-
871
-
872
- <li class="public ">
873
- <span class="summary_signature">
874
-
875
- <a href="#to_local_paths-instance_method" title="#to_local_paths (instance method)">- (Array&lt;String&gt;) <strong>to_local_paths</strong>(notations) </a>
876
-
877
-
878
-
879
- </span>
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
-
888
-
889
- <span class="summary_desc"><div class='inline'>
890
- <p>Convert notations to local paths of artifacts.</p>
891
- </div></span>
892
-
893
- </li>
894
-
895
-
896
- </ul>
897
-
898
-
899
- <div id="constructor_details" class="method_details_list">
900
- <h2>Constructor Details</h2>
901
-
902
- <div class="method_details first">
903
- <h3 class="signature first" id="initialize-instance_method">
904
-
905
- - (<tt><span class='object_link'><a href="" title="Naether (class)">Naether</a></span></tt>) <strong>initialize</strong>
906
-
907
-
908
-
909
-
910
-
911
- </h3><div class="docstring">
912
- <div class="discussion">
913
-
914
- <p>Create new instance.</p>
915
-
916
-
917
- </div>
918
- </div>
919
- <div class="tags">
920
-
921
-
922
- </div><table class="source_code">
923
- <tr>
924
- <td>
925
- <pre class="lines">
926
-
927
-
928
- 60
929
- 61
930
- 62</pre>
931
- </td>
932
- <td>
933
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 60</span>
934
-
935
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span>
936
- <span class='rubyid_@resolver ivar id'>@resolver</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_create identifier id'>create</span><span class='lparen token'>(</span><span class='string val'>'com.tobedevoured.naether.impl.NaetherImpl'</span><span class='rparen token'>)</span>
937
- <span class='rubyid_end end kw'>end</span>
938
- </pre>
939
- </td>
940
- </tr>
941
- </table>
942
- </div>
943
-
944
- </div>
945
-
946
- <div id="instance_attr_details" class="attr_details">
947
- <h2>Instance Attribute Details</h2>
948
-
949
-
950
- <span id=""></span>
951
- <div class="method_details first">
952
- <h3 class="signature first" id="resolver-instance_method">
953
-
954
- - (<tt>Object</tt>) <strong>resolver</strong> <span class="extras">(readonly)</span>
955
-
956
-
957
-
958
-
959
-
960
- </h3><div class="docstring">
961
- <div class="discussion">
962
-
963
- <p>Returns the value of attribute resolver</p>
964
-
965
-
966
- </div>
967
- </div>
968
- <div class="tags">
969
-
970
-
971
- </div><table class="source_code">
972
- <tr>
973
- <td>
974
- <pre class="lines">
975
-
976
-
977
- 28
978
- 29
979
- 30</pre>
980
- </td>
981
- <td>
982
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 28</span>
983
-
984
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_resolver identifier id'>resolver</span>
985
- <span class='rubyid_@resolver ivar id'>@resolver</span>
986
- <span class='rubyid_end end kw'>end</span>
987
- </pre>
988
- </td>
989
- </tr>
990
- </table>
991
- </div>
992
-
993
- </div>
994
-
995
-
996
- <div id="class_method_details" class="method_details_list">
997
- <h2>Class Method Details</h2>
998
-
999
-
1000
- <div class="method_details first">
1001
- <h3 class="signature first" id="bootstrap_dependencies-class_method">
1002
-
1003
- + (<tt>Object</tt>) <strong>bootstrap_dependencies</strong>(dep_file = nil)
1004
-
1005
-
1006
-
1007
-
1008
-
1009
- </h3><div class="docstring">
1010
- <div class="discussion">
1011
-
1012
- <p>List of Java dependencies needed to bootstrap Naether</p>
1013
-
1014
-
1015
- </div>
1016
- </div>
1017
- <div class="tags">
1018
- <p class="tag_title">Parameters:</p>
1019
- <ul class="param">
1020
-
1021
- <li>
1022
-
1023
- <span class='name'>dep_file</span>
1024
-
1025
-
1026
- <span class='type'>(<tt>String</tt>)</span>
1027
-
1028
-
1029
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1030
-
1031
-
1032
- &mdash;
1033
- <div class='inline'>
1034
- <p>path</p>
1035
- </div>
1036
-
1037
- </li>
1038
-
1039
- </ul>
1040
-
1041
-
1042
- <p class="tag_title">See Also:</p>
1043
- <ul class="see">
1044
-
1045
- <li>{Naether{Naether::Bootstrap{Naether::Bootstrap#dependencies}</li>
1046
-
1047
- </ul>
1048
-
1049
- </div><table class="source_code">
1050
- <tr>
1051
- <td>
1052
- <pre class="lines">
1053
-
1054
-
1055
- 36
1056
- 37
1057
- 38</pre>
1058
- </td>
1059
- <td>
1060
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 36</span>
1061
-
1062
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_bootstrap_dependencies identifier id'>bootstrap_dependencies</span><span class='lparen token'>(</span> <span class='rubyid_dep_file identifier id'>dep_file</span><span class='assign token'>=</span><span class='rubyid_nil nil kw'>nil</span> <span class='rparen token'>)</span>
1063
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Bootstrap constant id'>Bootstrap</span><span class='dot token'>.</span><span class='rubyid_dependencies identifier id'>dependencies</span><span class='lparen token'>(</span> <span class='rubyid_dep_file identifier id'>dep_file</span> <span class='rparen token'>)</span>
1064
- <span class='rubyid_end end kw'>end</span>
1065
- </pre>
1066
- </td>
1067
- </tr>
1068
- </table>
1069
- </div>
1070
-
1071
- <div class="method_details ">
1072
- <h3 class="signature " id="create_from_jars-class_method">
1073
-
1074
- + (<tt><span class='object_link'><a href="" title="Naether (class)">Naether</a></span></tt>) <strong>create_from_jars</strong>(jars)
1075
-
1076
-
1077
-
1078
-
1079
-
1080
- </h3><div class="docstring">
1081
- <div class="discussion">
1082
-
1083
- <p>Loads all jars creates a new instance of Naether</p>
1084
-
1085
-
1086
- </div>
1087
- </div>
1088
- <div class="tags">
1089
- <p class="tag_title">Parameters:</p>
1090
- <ul class="param">
1091
-
1092
- <li>
1093
-
1094
- <span class='name'>jars</span>
1095
-
1096
-
1097
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
1098
-
1099
-
1100
-
1101
- &mdash;
1102
- <div class='inline'>
1103
- <p>of paths</p>
1104
- </div>
1105
-
1106
- </li>
1107
-
1108
- </ul>
1109
-
1110
- <p class="tag_title">Returns:</p>
1111
- <ul class="return">
1112
-
1113
- <li>
1114
-
1115
-
1116
- <span class='type'>(<tt><span class='object_link'><a href="" title="Naether (class)">Naether</a></span></tt>)</span>
1117
-
1118
-
1119
-
1120
- </li>
1121
-
1122
- </ul>
1123
-
1124
- </div><table class="source_code">
1125
- <tr>
1126
- <td>
1127
- <pre class="lines">
1128
-
1129
-
1130
- 52
1131
- 53
1132
- 54
1133
- 55</pre>
1134
- </td>
1135
- <td>
1136
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 52</span>
1137
-
1138
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_create_from_jars identifier id'>create_from_jars</span><span class='lparen token'>(</span> <span class='rubyid_jars identifier id'>jars</span> <span class='rparen token'>)</span>
1139
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_internal_load_paths identifier id'>internal_load_paths</span><span class='lparen token'>(</span> <span class='rubyid_jars identifier id'>jars</span> <span class='rparen token'>)</span>
1140
- <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
1141
- <span class='rubyid_end end kw'>end</span>
1142
- </pre>
1143
- </td>
1144
- </tr>
1145
- </table>
1146
- </div>
1147
-
1148
- <div class="method_details ">
1149
- <h3 class="signature " id="platform-class_method">
1150
-
1151
- + (<tt>Object</tt>) <strong>platform</strong>
1152
-
1153
-
1154
-
1155
-
1156
-
1157
- </h3><div class="docstring">
1158
- <div class="discussion">
1159
-
1160
- <p>Helper for platform detection</p>
1161
-
1162
-
1163
- </div>
1164
- </div>
1165
- <div class="tags">
1166
-
1167
-
1168
- </div><table class="source_code">
1169
- <tr>
1170
- <td>
1171
- <pre class="lines">
1172
-
1173
-
1174
- 43
1175
- 44
1176
- 45</pre>
1177
- </td>
1178
- <td>
1179
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 43</span>
1180
-
1181
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_platform identifier id'>platform</span>
1182
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Configuration constant id'>Configuration</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span>
1183
- <span class='rubyid_end end kw'>end</span>
1184
- </pre>
1185
- </td>
1186
- </tr>
1187
- </table>
1188
- </div>
1189
-
1190
- </div>
1191
-
1192
- <div id="instance_method_details" class="method_details_list">
1193
- <h2>Instance Method Details</h2>
1194
-
1195
-
1196
- <div class="method_details first">
1197
- <h3 class="signature first" id="add_build_artifact-instance_method">
1198
-
1199
- - (<tt>Object</tt>) <strong>add_build_artifact</strong>(notation, path, pom = nil)
1200
-
1201
-
1202
-
1203
-
1204
-
1205
- </h3><div class="docstring">
1206
- <div class="discussion">
1207
-
1208
- <p>Add a local Build Artifact, that will be used in the Dependency Resolution</p>
1209
-
1210
-
1211
- </div>
1212
- </div>
1213
- <div class="tags">
1214
- <p class="tag_title">Parameters:</p>
1215
- <ul class="param">
1216
-
1217
- <li>
1218
-
1219
- <span class='name'>notation</span>
1220
-
1221
-
1222
- <span class='type'>(<tt>String</tt>)</span>
1223
-
1224
-
1225
-
1226
- </li>
1227
-
1228
- <li>
1229
-
1230
- <span class='name'>path</span>
1231
-
1232
-
1233
- <span class='type'>(<tt>String</tt>)</span>
1234
-
1235
-
1236
-
1237
- &mdash;
1238
- <div class='inline'>
1239
- <p>to artifact</p>
1240
- </div>
1241
-
1242
- </li>
1243
-
1244
- <li>
1245
-
1246
- <span class='name'>pom</span>
1247
-
1248
-
1249
- <span class='type'>(<tt>String</tt>)</span>
1250
-
1251
-
1252
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1253
-
1254
-
1255
- &mdash;
1256
- <div class='inline'>
1257
- <p>optional path to pom.xml</p>
1258
- </div>
1259
-
1260
- </li>
1261
-
1262
- </ul>
1263
-
1264
-
1265
- </div><table class="source_code">
1266
- <tr>
1267
- <td>
1268
- <pre class="lines">
1269
-
1270
-
1271
- 117
1272
- 118
1273
- 119</pre>
1274
- </td>
1275
- <td>
1276
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 117</span>
1277
-
1278
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_add_build_artifact identifier id'>add_build_artifact</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_path identifier id'>path</span><span class='comma token'>,</span> <span class='rubyid_pom identifier id'>pom</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rparen token'>)</span>
1279
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_addBuildArtifact identifier id'>addBuildArtifact</span><span class='lparen token'>(</span><span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_path identifier id'>path</span><span class='comma token'>,</span> <span class='rubyid_pom identifier id'>pom</span> <span class='rparen token'>)</span>
1280
- <span class='rubyid_end end kw'>end</span>
1281
- </pre>
1282
- </td>
1283
- </tr>
1284
- </table>
1285
- </div>
1286
-
1287
- <div class="method_details ">
1288
- <h3 class="signature " id="add_dependency-instance_method">
1289
-
1290
- - (<tt>Object</tt>) <strong>add_dependency</strong>(dependency)
1291
-
1292
-
1293
-
1294
-
1295
-
1296
- </h3><div class="docstring">
1297
- <div class="discussion">
1298
-
1299
- <p>Add a dependency of org.sonatype.aether.graph.Dependency</p>
1300
-
1301
-
1302
- </div>
1303
- </div>
1304
- <div class="tags">
1305
- <p class="tag_title">Parameters:</p>
1306
- <ul class="param">
1307
-
1308
- <li>
1309
-
1310
- <span class='name'>dependency</span>
1311
-
1312
-
1313
- <span class='type'>(<tt>org.sonatype.aether.graph.Dependency</tt>)</span>
1314
-
1315
-
1316
-
1317
- </li>
1318
-
1319
- </ul>
1320
-
1321
-
1322
- </div><table class="source_code">
1323
- <tr>
1324
- <td>
1325
- <pre class="lines">
1326
-
1327
-
1328
- 185
1329
- 186
1330
- 187
1331
- 188
1332
- 189
1333
- 190
1334
- 191
1335
- 192</pre>
1336
- </td>
1337
- <td>
1338
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 185</span>
1339
-
1340
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_add_dependency identifier id'>add_dependency</span><span class='lparen token'>(</span> <span class='rubyid_dependency identifier id'>dependency</span> <span class='rparen token'>)</span>
1341
- <span class='comment val'>#@resolver.addDependency( dependency )</span>
1342
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span> <span class='eq op'>==</span> <span class='string val'>'java'</span>
1343
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_addDependency identifier id'>addDependency</span><span class='lparen token'>(</span> <span class='rubyid_dependency identifier id'>dependency</span> <span class='rparen token'>)</span>
1344
- <span class='rubyid_else else kw'>else</span>
1345
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid__invoke identifier id'>_invoke</span><span class='lparen token'>(</span><span class='string val'>'addDependency'</span><span class='comma token'>,</span> <span class='string val'>'Lorg.sonatype.aether.graph.Dependency;'</span><span class='comma token'>,</span> <span class='rubyid_dependency identifier id'>dependency</span><span class='rparen token'>)</span>
1346
- <span class='rubyid_end end kw'>end</span>
1347
- <span class='rubyid_end end kw'>end</span>
1348
- </pre>
1349
- </td>
1350
- </tr>
1351
- </table>
1352
- </div>
1353
-
1354
- <div class="method_details ">
1355
- <h3 class="signature " id="add_notation_dependency-instance_method">
1356
-
1357
- - (<tt>Object</tt>) <strong>add_notation_dependency</strong>(notation, scope = 'compile')
1358
-
1359
-
1360
-
1361
-
1362
-
1363
- </h3><div class="docstring">
1364
- <div class="discussion">
1365
-
1366
- <p>Add a dependency</p>
1367
-
1368
-
1369
- </div>
1370
- </div>
1371
- <div class="tags">
1372
- <p class="tag_title">Parameters:</p>
1373
- <ul class="param">
1374
-
1375
- <li>
1376
-
1377
- <span class='name'>notation</span>
1378
-
1379
-
1380
- <span class='type'>(<tt>String</tt>)</span>
1381
-
1382
-
1383
-
1384
- &mdash;
1385
- <div class='inline'>
1386
- <p>in the format of groupId:artifactId:version</p>
1387
- </div>
1388
-
1389
- </li>
1390
-
1391
- <li>
1392
-
1393
- <span class='name'>scope</span>
1394
-
1395
-
1396
- <span class='type'>(<tt>String</tt>)</span>
1397
-
1398
-
1399
- <em class="default">(defaults to: <tt>'compile'</tt>)</em>
1400
-
1401
-
1402
- &mdash;
1403
- <div class='inline'>
1404
- <p>valid options are compile,test,runtime</p>
1405
- </div>
1406
-
1407
- </li>
1408
-
1409
- </ul>
1410
-
1411
-
1412
- <p class="tag_title">See Also:</p>
1413
- <ul class="see">
1414
-
1415
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
1416
-
1417
- </ul>
1418
-
1419
- </div><table class="source_code">
1420
- <tr>
1421
- <td>
1422
- <pre class="lines">
1423
-
1424
-
1425
- 165
1426
- 166
1427
- 167</pre>
1428
- </td>
1429
- <td>
1430
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 165</span>
1431
-
1432
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_add_notation_dependency identifier id'>add_notation_dependency</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_scope identifier id'>scope</span><span class='assign token'>=</span><span class='string val'>'compile'</span> <span class='rparen token'>)</span>
1433
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_addDependency identifier id'>addDependency</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_scope identifier id'>scope</span> <span class='rparen token'>)</span>
1434
- <span class='rubyid_end end kw'>end</span>
1435
- </pre>
1436
- </td>
1437
- </tr>
1438
- </table>
1439
- </div>
1440
-
1441
- <div class="method_details ">
1442
- <h3 class="signature " id="add_pom_dependencies-instance_method">
1443
-
1444
- - (<tt>Object</tt>) <strong>add_pom_dependencies</strong>(pom_path, scopes = ['compile'])
1445
-
1446
-
1447
-
1448
-
1449
-
1450
- </h3><div class="docstring">
1451
- <div class="discussion">
1452
-
1453
- <p>Add dependencies from a Maven POM</p>
1454
-
1455
-
1456
- </div>
1457
- </div>
1458
- <div class="tags">
1459
- <p class="tag_title">Parameters:</p>
1460
- <ul class="param">
1461
-
1462
- <li>
1463
-
1464
- <span class='name'>pom_path</span>
1465
-
1466
-
1467
- <span class='type'>(<tt>String</tt>)</span>
1468
-
1469
-
1470
-
1471
- </li>
1472
-
1473
- <li>
1474
-
1475
- <span class='name'>scopes</span>
1476
-
1477
-
1478
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
1479
-
1480
-
1481
- <em class="default">(defaults to: <tt>['compile']</tt>)</em>
1482
-
1483
-
1484
- &mdash;
1485
- <div class='inline'>
1486
- <p>valid options are compile,test,runtime</p>
1487
- </div>
1488
-
1489
- </li>
1490
-
1491
- </ul>
1492
-
1493
-
1494
- </div><table class="source_code">
1495
- <tr>
1496
- <td>
1497
- <pre class="lines">
1498
-
1499
-
1500
- 173
1501
- 174
1502
- 175
1503
- 176
1504
- 177
1505
- 178
1506
- 179
1507
- 180</pre>
1508
- </td>
1509
- <td>
1510
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 173</span>
1511
-
1512
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_add_pom_dependencies identifier id'>add_pom_dependencies</span><span class='lparen token'>(</span> <span class='rubyid_pom_path identifier id'>pom_path</span><span class='comma token'>,</span> <span class='rubyid_scopes identifier id'>scopes</span><span class='assign token'>=</span><span class='lbrack token'>[</span><span class='string val'>'compile'</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
1513
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span> <span class='eq op'>==</span> <span class='string val'>'java'</span>
1514
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_addDependencies identifier id'>addDependencies</span><span class='lparen token'>(</span> <span class='rubyid_pom_path identifier id'>pom_path</span><span class='comma token'>,</span> <span class='rubyid_scopes identifier id'>scopes</span> <span class='rparen token'>)</span>
1515
- <span class='rubyid_else else kw'>else</span>
1516
- <span class='rubyid_list identifier id'>list</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_java_list identifier id'>convert_to_java_list</span><span class='lparen token'>(</span> <span class='rubyid_scopes identifier id'>scopes</span> <span class='rparen token'>)</span>
1517
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid__invoke identifier id'>_invoke</span><span class='lparen token'>(</span> <span class='string val'>'addDependencies'</span><span class='comma token'>,</span> <span class='string val'>'Ljava.lang.String;Ljava.util.List;'</span><span class='comma token'>,</span> <span class='rubyid_pom_path identifier id'>pom_path</span><span class='comma token'>,</span> <span class='rubyid_list identifier id'>list</span> <span class='rparen token'>)</span>
1518
- <span class='rubyid_end end kw'>end</span>
1519
- <span class='rubyid_end end kw'>end</span>
1520
- </pre>
1521
- </td>
1522
- </tr>
1523
- </table>
1524
- </div>
1525
-
1526
- <div class="method_details ">
1527
- <h3 class="signature " id="add_remote_repository-instance_method">
1528
-
1529
- - (<tt>Object</tt>) <strong>add_remote_repository</strong>(url, username = nil, password = nil)
1530
-
1531
-
1532
-
1533
-
1534
-
1535
- </h3><div class="docstring">
1536
- <div class="discussion">
1537
-
1538
- <p>Add remote repository</p>
1539
-
1540
-
1541
- </div>
1542
- </div>
1543
- <div class="tags">
1544
- <p class="tag_title">Parameters:</p>
1545
- <ul class="param">
1546
-
1547
- <li>
1548
-
1549
- <span class='name'>url</span>
1550
-
1551
-
1552
- <span class='type'>(<tt>String</tt>)</span>
1553
-
1554
-
1555
-
1556
- &mdash;
1557
- <div class='inline'>
1558
- <p>of remote repo</p>
1559
- </div>
1560
-
1561
- </li>
1562
-
1563
- <li>
1564
-
1565
- <span class='name'>username</span>
1566
-
1567
-
1568
- <span class='type'>(<tt>String</tt>)</span>
1569
-
1570
-
1571
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1572
-
1573
-
1574
- &mdash;
1575
- <div class='inline'>
1576
- <p>optional</p>
1577
- </div>
1578
-
1579
- </li>
1580
-
1581
- <li>
1582
-
1583
- <span class='name'>password</span>
1584
-
1585
-
1586
- <span class='type'>(<tt>String</tt>)</span>
1587
-
1588
-
1589
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1590
-
1591
-
1592
- &mdash;
1593
- <div class='inline'>
1594
- <p>optioanl</p>
1595
- </div>
1596
-
1597
- </li>
1598
-
1599
- </ul>
1600
-
1601
-
1602
- </div><table class="source_code">
1603
- <tr>
1604
- <td>
1605
- <pre class="lines">
1606
-
1607
-
1608
- 74
1609
- 75
1610
- 76
1611
- 77
1612
- 78
1613
- 79
1614
- 80</pre>
1615
- </td>
1616
- <td>
1617
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 74</span>
1618
-
1619
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_add_remote_repository identifier id'>add_remote_repository</span><span class='lparen token'>(</span> <span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='rubyid_username identifier id'>username</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_password identifier id'>password</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rparen token'>)</span>
1620
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_username identifier id'>username</span>
1621
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_addRemoteRepositoryByUrl identifier id'>addRemoteRepositoryByUrl</span><span class='lparen token'>(</span> <span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='rubyid_username identifier id'>username</span><span class='comma token'>,</span> <span class='rubyid_password identifier id'>password</span> <span class='rparen token'>)</span>
1622
- <span class='rubyid_else else kw'>else</span>
1623
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_addRemoteRepositoryByUrl identifier id'>addRemoteRepositoryByUrl</span><span class='lparen token'>(</span> <span class='rubyid_url identifier id'>url</span> <span class='rparen token'>)</span>
1624
- <span class='rubyid_end end kw'>end</span>
1625
- <span class='rubyid_end end kw'>end</span>
1626
- </pre>
1627
- </td>
1628
- </tr>
1629
- </table>
1630
- </div>
1631
-
1632
- <div class="method_details ">
1633
- <h3 class="signature " id="build_artifacts-instance_method">
1634
-
1635
- - (<tt>Array</tt>) <strong>build_artifacts</strong>
1636
-
1637
-
1638
-
1639
-
1640
-
1641
- </h3><div class="docstring">
1642
- <div class="discussion">
1643
-
1644
- <p>Get Build Artifacts</p>
1645
-
1646
-
1647
- </div>
1648
- </div>
1649
- <div class="tags">
1650
-
1651
- <p class="tag_title">Returns:</p>
1652
- <ul class="return">
1653
-
1654
- <li>
1655
-
1656
-
1657
- <span class='type'>(<tt>Array</tt>)</span>
1658
-
1659
-
1660
-
1661
- &mdash;
1662
- <div class='inline'>
1663
- <p>of build artifacts</p>
1664
- </div>
1665
-
1666
- </li>
1667
-
1668
- </ul>
1669
-
1670
- </div><table class="source_code">
1671
- <tr>
1672
- <td>
1673
- <pre class="lines">
1674
-
1675
-
1676
- 156
1677
- 157
1678
- 158</pre>
1679
- </td>
1680
- <td>
1681
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 156</span>
1682
-
1683
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_build_artifacts identifier id'>build_artifacts</span>
1684
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span> <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getBuildArtifacts identifier id'>getBuildArtifacts</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='rparen token'>)</span>
1685
- <span class='rubyid_end end kw'>end</span>
1686
- </pre>
1687
- </td>
1688
- </tr>
1689
- </table>
1690
- </div>
1691
-
1692
- <div class="method_details ">
1693
- <h3 class="signature " id="build_artifacts=-instance_method">
1694
-
1695
- - (<tt>Object</tt>) <strong>build_artifacts=</strong>(artifacts)
1696
-
1697
-
1698
-
1699
-
1700
-
1701
- </h3><div class="docstring">
1702
- <div class="discussion">
1703
-
1704
- <p>Set local Build Artifacts, that will be used in the Dependency Resolution</p>
1705
-
1706
-
1707
- </div>
1708
- </div>
1709
- <div class="tags">
1710
- <p class="tag_title">Parameters:</p>
1711
- <ul class="param">
1712
-
1713
- <li>
1714
-
1715
- <span class='name'>artifacts</span>
1716
-
1717
-
1718
- <span class='type'>(<tt>Array&lt;Hash&gt;</tt>)</span>
1719
-
1720
-
1721
-
1722
- &mdash;
1723
- <div class='inline'>
1724
- <p>of Hashs with { notation =&gt; path } or { notation =&gt; { :path =&gt;
1725
- path, :pom =&gt; pom_path }</p>
1726
- </div>
1727
-
1728
- </li>
1729
-
1730
- </ul>
1731
-
1732
-
1733
- </div><table class="source_code">
1734
- <tr>
1735
- <td>
1736
- <pre class="lines">
1737
-
1738
-
1739
- 126
1740
- 127
1741
- 128
1742
- 129
1743
- 130
1744
- 131
1745
- 132
1746
- 133
1747
- 134
1748
- 135
1749
- 136
1750
- 137
1751
- 138
1752
- 139
1753
- 140
1754
- 141
1755
- 142
1756
- 143
1757
- 144
1758
- 145
1759
- 146
1760
- 147
1761
- 148
1762
- 149</pre>
1763
- </td>
1764
- <td>
1765
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 126</span>
1766
-
1767
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_build_artifacts= identifier id'>build_artifacts=</span><span class='lparen token'>(</span> <span class='rubyid_artifacts identifier id'>artifacts</span> <span class='rparen token'>)</span>
1768
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_clearBuildArtifacts identifier id'>clearBuildArtifacts</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
1769
-
1770
- <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_artifacts identifier id'>artifacts</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
1771
- <span class='rubyid_artifacts identifier id'>artifacts</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_artifacts identifier id'>artifacts</span><span class='rbrack token'>]</span>
1772
- <span class='rubyid_end end kw'>end</span>
1773
-
1774
- <span class='rubyid_artifacts identifier id'>artifacts</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_artifact identifier id'>artifact</span><span class='bitor op'>|</span>
1775
- <span class='comment val'># Hash of notation =&gt; path or notation =&gt; { :path =&gt;, :pom =&gt; }</span>
1776
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Hash constant id'>Hash</span>
1777
-
1778
- <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span> <span class='assign token'>=</span> <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_shift identifier id'>shift</span>
1779
-
1780
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_opts identifier id'>opts</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Hash constant id'>Hash</span>
1781
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_add_build_artifact identifier id'>add_build_artifact</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:path</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:pom</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
1782
- <span class='rubyid_else else kw'>else</span>
1783
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_add_build_artifact identifier id'>add_build_artifact</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span> <span class='rparen token'>)</span>
1784
- <span class='rubyid_end end kw'>end</span>
1785
-
1786
- <span class='rubyid_else else kw'>else</span>
1787
- <span class='rubyid_raise identifier id'>raise</span> <span class='string val'>&quot;invalid build_artifacts format&quot;</span>
1788
- <span class='rubyid_end end kw'>end</span>
1789
- <span class='rubyid_end end kw'>end</span>
1790
- <span class='rubyid_end end kw'>end</span>
1791
- </pre>
1792
- </td>
1793
- </tr>
1794
- </table>
1795
- </div>
1796
-
1797
- <div class="method_details ">
1798
- <h3 class="signature " id="clear_remote_repositories-instance_method">
1799
-
1800
- - (<tt>Object</tt>) <strong>clear_remote_repositories</strong>
1801
-
1802
-
1803
-
1804
-
1805
-
1806
- </h3><div class="docstring">
1807
- <div class="discussion">
1808
-
1809
- <p>Clear all remote repositories</p>
1810
-
1811
-
1812
- </div>
1813
- </div>
1814
- <div class="tags">
1815
-
1816
-
1817
- </div><table class="source_code">
1818
- <tr>
1819
- <td>
1820
- <pre class="lines">
1821
-
1822
-
1823
- 65
1824
- 66
1825
- 67</pre>
1826
- </td>
1827
- <td>
1828
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 65</span>
1829
-
1830
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_clear_remote_repositories identifier id'>clear_remote_repositories</span>
1831
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_clearRemoteRepositories identifier id'>clearRemoteRepositories</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
1832
- <span class='rubyid_end end kw'>end</span>
1833
- </pre>
1834
- </td>
1835
- </tr>
1836
- </table>
1837
- </div>
1838
-
1839
- <div class="method_details ">
1840
- <h3 class="signature " id="dependencies-instance_method">
1841
-
1842
- - (<tt>Array</tt>) <strong>dependencies</strong>
1843
-
1844
-
1845
-
1846
-
1847
-
1848
- </h3><div class="docstring">
1849
- <div class="discussion">
1850
-
1851
- <p>Get array of dependencies</p>
1852
-
1853
-
1854
- </div>
1855
- </div>
1856
- <div class="tags">
1857
-
1858
- <p class="tag_title">Returns:</p>
1859
- <ul class="return">
1860
-
1861
- <li>
1862
-
1863
-
1864
- <span class='type'>(<tt>Array</tt>)</span>
1865
-
1866
-
1867
-
1868
- </li>
1869
-
1870
- </ul>
1871
-
1872
- </div><table class="source_code">
1873
- <tr>
1874
- <td>
1875
- <pre class="lines">
1876
-
1877
-
1878
- 253
1879
- 254
1880
- 255</pre>
1881
- </td>
1882
- <td>
1883
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 253</span>
1884
-
1885
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_dependencies identifier id'>dependencies</span>
1886
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span> <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_currentDependencies identifier id'>currentDependencies</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='rparen token'>)</span>
1887
- <span class='rubyid_end end kw'>end</span>
1888
- </pre>
1889
- </td>
1890
- </tr>
1891
- </table>
1892
- </div>
1893
-
1894
- <div class="method_details ">
1895
- <h3 class="signature " id="dependencies=-instance_method">
1896
-
1897
- - (<tt>Object</tt>) <strong>dependencies=</strong>(dependencies)
1898
-
1899
-
1900
-
1901
-
1902
-
1903
- </h3><div class="docstring">
1904
- <div class="discussion">
1905
-
1906
- <p>Set the dependencies</p>
1907
-
1908
- <p>The dependencies param takes an [Array] of mixed dependencies:</p>
1909
-
1910
- <pre class="ruby">* [<span class="ruby-constant">String</span>] <span class="ruby-constant">Artifact</span> <span class="ruby-identifier">notation</span>, <span class="ruby-identifier">such</span> <span class="ruby-identifier">as</span> <span class="ruby-identifier">groupId</span>:<span class="ruby-identifier">artifactId</span><span class="ruby-operator">:</span><span class="ruby-identifier">version</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">g</span>. <span class="ruby-string">'junit:junit:4.7'</span>
1911
- * [<span class="ruby-constant">Hash</span>] <span class="ruby-identifier">of</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">single</span> <span class="ruby-identifier">artifaction</span> <span class="ruby-identifier">notation</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">scope</span> <span class="ruby-operator">-</span> { <span class="ruby-string">'junit:junit:4.7'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'test'</span> }
1912
- * [<span class="ruby-constant">String</span>] <span class="ruby-identifier">path</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">local</span> <span class="ruby-identifier">pom</span> <span class="ruby-operator">-</span> <span class="ruby-string">'lib/pom.xml'</span>
1913
- * [<span class="ruby-constant">Hash</span>] <span class="ruby-identifier">of</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">single</span> <span class="ruby-identifier">path</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">local</span> <span class="ruby-identifier">pom</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">scope</span> <span class="ruby-operator">-</span> { <span class="ruby-string">'lib/pom.xml'</span> =<span class="ruby-operator">&gt;</span> [<span class="ruby-string">'compile'</span>,<span class="ruby-string">'test'</span>] }
1914
- </pre>
1915
-
1916
-
1917
- </div>
1918
- </div>
1919
- <div class="tags">
1920
- <p class="tag_title">Parameters:</p>
1921
- <ul class="param">
1922
-
1923
- <li>
1924
-
1925
- <span class='name'>dependencies</span>
1926
-
1927
-
1928
- <span class='type'>(<tt>Array</tt>)</span>
1929
-
1930
-
1931
-
1932
- </li>
1933
-
1934
- </ul>
1935
-
1936
-
1937
- <p class="tag_title">See Also:</p>
1938
- <ul class="see">
1939
-
1940
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
1941
-
1942
- </ul>
1943
-
1944
- </div><table class="source_code">
1945
- <tr>
1946
- <td>
1947
- <pre class="lines">
1948
-
1949
-
1950
- 204
1951
- 205
1952
- 206
1953
- 207
1954
- 208
1955
- 209
1956
- 210
1957
- 211
1958
- 212
1959
- 213
1960
- 214
1961
- 215
1962
- 216
1963
- 217
1964
- 218
1965
- 219
1966
- 220
1967
- 221
1968
- 222
1969
- 223
1970
- 224
1971
- 225
1972
- 226
1973
- 227
1974
- 228
1975
- 229
1976
- 230
1977
- 231
1978
- 232
1979
- 233
1980
- 234
1981
- 235
1982
- 236
1983
- 237
1984
- 238
1985
- 239
1986
- 240
1987
- 241
1988
- 242
1989
- 243
1990
- 244
1991
- 245
1992
- 246
1993
- 247
1994
- 248</pre>
1995
- </td>
1996
- <td>
1997
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 204</span>
1998
-
1999
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_dependencies= identifier id'>dependencies=</span><span class='lparen token'>(</span><span class='rubyid_dependencies identifier id'>dependencies</span><span class='rparen token'>)</span>
2000
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_clearDependencies identifier id'>clearDependencies</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
2001
-
2002
- <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_dependencies identifier id'>dependencies</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
2003
- <span class='rubyid_dependencies identifier id'>dependencies</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_dependencies identifier id'>dependencies</span><span class='rbrack token'>]</span>
2004
- <span class='rubyid_end end kw'>end</span>
2005
-
2006
- <span class='rubyid_dependencies identifier id'>dependencies</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_dependent identifier id'>dependent</span><span class='bitor op'>|</span>
2007
- <span class='comment val'># Hash of notation =&gt; scope</span>
2008
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Hash constant id'>Hash</span>
2009
- <span class='rubyid_key identifier id'>key</span> <span class='assign token'>=</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='dot token'>.</span><span class='rubyid_keys identifier id'>keys</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
2010
-
2011
- <span class='comment val'># Add pom dependencies with scopes</span>
2012
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_key identifier id'>key</span> <span class='match op'>=~</span> <span class='regexp val'>/\.xml$/i</span>
2013
- <span class='rubyid_scopes identifier id'>scopes</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span>
2014
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
2015
- <span class='rubyid_scopes identifier id'>scopes</span> <span class='assign token'>=</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span>
2016
- <span class='rubyid_else else kw'>else</span>
2017
- <span class='rubyid_scopes identifier id'>scopes</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_dependent identifier id'>dependent</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span>
2018
- <span class='rubyid_end end kw'>end</span>
2019
-
2020
- <span class='rubyid_add_pom_dependencies identifier id'>add_pom_dependencies</span><span class='lparen token'>(</span> <span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_scopes identifier id'>scopes</span> <span class='rparen token'>)</span>
2021
-
2022
- <span class='comment val'># Add a dependency notation with scopes</span>
2023
- <span class='rubyid_else else kw'>else</span>
2024
- <span class='rubyid_add_notation_dependency identifier id'>add_notation_dependency</span><span class='lparen token'>(</span> <span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
2025
- <span class='rubyid_end end kw'>end</span>
2026
-
2027
- <span class='rubyid_elsif elsif kw'>elsif</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_String constant id'>String</span>
2028
-
2029
- <span class='comment val'># Add pom dependencies with default scopes</span>
2030
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_dependent identifier id'>dependent</span> <span class='match op'>=~</span> <span class='regexp val'>/\.xml$/i</span>
2031
- <span class='rubyid_add_pom_dependencies identifier id'>add_pom_dependencies</span><span class='lparen token'>(</span> <span class='rubyid_dependent identifier id'>dependent</span> <span class='rparen token'>)</span>
2032
-
2033
- <span class='comment val'># Add a dependency notation with compile scope</span>
2034
- <span class='rubyid_else else kw'>else</span>
2035
- <span class='rubyid_add_notation_dependency identifier id'>add_notation_dependency</span><span class='lparen token'>(</span> <span class='rubyid_dependent identifier id'>dependent</span><span class='comma token'>,</span> <span class='string val'>'compile'</span> <span class='rparen token'>)</span>
2036
- <span class='rubyid_end end kw'>end</span>
2037
-
2038
- <span class='comment val'># Add an Aether dependency</span>
2039
- <span class='rubyid_else else kw'>else</span>
2040
- <span class='rubyid_add_dependency identifier id'>add_dependency</span><span class='lparen token'>(</span> <span class='rubyid_dependent identifier id'>dependent</span> <span class='rparen token'>)</span>
2041
- <span class='rubyid_end end kw'>end</span>
2042
- <span class='rubyid_end end kw'>end</span>
2043
- <span class='rubyid_end end kw'>end</span>
2044
- </pre>
2045
- </td>
2046
- </tr>
2047
- </table>
2048
- </div>
2049
-
2050
- <div class="method_details ">
2051
- <h3 class="signature " id="dependencies_classpath-instance_method">
2052
-
2053
- - (<tt>String</tt>) <strong>dependencies_classpath</strong>
2054
-
2055
-
2056
-
2057
-
2058
-
2059
- </h3><div class="docstring">
2060
- <div class="discussion">
2061
-
2062
- <p>Convert dependencies to Classpath friendly string</p>
2063
-
2064
-
2065
- </div>
2066
- </div>
2067
- <div class="tags">
2068
-
2069
- <p class="tag_title">Returns:</p>
2070
- <ul class="return">
2071
-
2072
- <li>
2073
-
2074
-
2075
- <span class='type'>(<tt>String</tt>)</span>
2076
-
2077
-
2078
-
2079
- </li>
2080
-
2081
- </ul>
2082
-
2083
- </div><table class="source_code">
2084
- <tr>
2085
- <td>
2086
- <pre class="lines">
2087
-
2088
-
2089
- 275
2090
- 276
2091
- 277</pre>
2092
- </td>
2093
- <td>
2094
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 275</span>
2095
-
2096
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_dependencies_classpath identifier id'>dependencies_classpath</span>
2097
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getResolvedClassPath identifier id'>getResolvedClassPath</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
2098
- <span class='rubyid_end end kw'>end</span>
2099
- </pre>
2100
- </td>
2101
- </tr>
2102
- </table>
2103
- </div>
2104
-
2105
- <div class="method_details ">
2106
- <h3 class="signature " id="dependencies_graph-instance_method">
2107
-
2108
- - (<tt>Hash</tt>) <strong>dependencies_graph</strong>(nodes = nil)
2109
-
2110
-
2111
-
2112
-
2113
-
2114
- </h3><div class="docstring">
2115
- <div class="discussion">
2116
-
2117
- <p>Dependencies as a Graph of nested Hashes</p>
2118
-
2119
-
2120
- </div>
2121
- </div>
2122
- <div class="tags">
2123
-
2124
- <p class="tag_title">Returns:</p>
2125
- <ul class="return">
2126
-
2127
- <li>
2128
-
2129
-
2130
- <span class='type'>(<tt>Hash</tt>)</span>
2131
-
2132
-
2133
-
2134
- </li>
2135
-
2136
- </ul>
2137
-
2138
- </div><table class="source_code">
2139
- <tr>
2140
- <td>
2141
- <pre class="lines">
2142
-
2143
-
2144
- 282
2145
- 283
2146
- 284
2147
- 285
2148
- 286
2149
- 287
2150
- 288
2151
- 289
2152
- 290
2153
- 291
2154
- 292
2155
- 293
2156
- 294
2157
- 295
2158
- 296
2159
- 297
2160
- 298
2161
- 299
2162
- 300
2163
- 301</pre>
2164
- </td>
2165
- <td>
2166
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 282</span>
2167
-
2168
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_dependencies_graph identifier id'>dependencies_graph</span><span class='lparen token'>(</span><span class='rubyid_nodes identifier id'>nodes</span><span class='assign token'>=</span><span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
2169
- <span class='rubyid_nodes identifier id'>nodes</span> <span class='assign token'>=</span> <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getDependenciesGraph identifier id'>getDependenciesGraph</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_nodes identifier id'>nodes</span>
2170
-
2171
- <span class='rubyid_graph identifier id'>graph</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
2172
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span> <span class='eq op'>==</span> <span class='string val'>'java'</span>
2173
- <span class='rubyid_nodes identifier id'>nodes</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_k identifier id'>k</span><span class='comma token'>,</span><span class='rubyid_v identifier id'>v</span><span class='bitor op'>|</span>
2174
- <span class='rubyid_deps identifier id'>deps</span> <span class='assign token'>=</span> <span class='rubyid_dependencies_graph identifier id'>dependencies_graph</span><span class='lparen token'>(</span><span class='rubyid_v identifier id'>v</span><span class='rparen token'>)</span>
2175
- <span class='rubyid_graph identifier id'>graph</span><span class='lbrack token'>[</span><span class='rubyid_k identifier id'>k</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_hash identifier id'>convert_to_ruby_hash</span><span class='lparen token'>(</span> <span class='rubyid_deps identifier id'>deps</span> <span class='rparen token'>)</span>
2176
- <span class='rubyid_end end kw'>end</span>
2177
- <span class='rubyid_else else kw'>else</span>
2178
- <span class='rubyid_iterator identifier id'>iterator</span> <span class='assign token'>=</span> <span class='rubyid_nodes identifier id'>nodes</span><span class='dot token'>.</span><span class='rubyid_entrySet identifier id'>entrySet</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_iterator identifier id'>iterator</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
2179
- <span class='rubyid_while while kw'>while</span> <span class='rubyid_iterator identifier id'>iterator</span><span class='dot token'>.</span><span class='rubyid_hasNext identifier id'>hasNext</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
2180
- <span class='rubyid_entry identifier id'>entry</span> <span class='assign token'>=</span> <span class='rubyid_iterator identifier id'>iterator</span><span class='dot token'>.</span><span class='rubyid_next identifier id'>next</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
2181
- <span class='rubyid_deps identifier id'>deps</span> <span class='assign token'>=</span> <span class='rubyid_dependencies_graph identifier id'>dependencies_graph</span><span class='lparen token'>(</span><span class='rubyid_entry identifier id'>entry</span><span class='dot token'>.</span><span class='rubyid_getValue identifier id'>getValue</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
2182
- <span class='rubyid_graph identifier id'>graph</span><span class='lbrack token'>[</span><span class='rubyid_entry identifier id'>entry</span><span class='dot token'>.</span><span class='rubyid_getKey identifier id'>getKey</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_toString identifier id'>toString</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_hash identifier id'>convert_to_ruby_hash</span><span class='lparen token'>(</span> <span class='rubyid_deps identifier id'>deps</span> <span class='rparen token'>)</span>
2183
- <span class='rubyid_end end kw'>end</span>
2184
- <span class='rubyid_end end kw'>end</span>
2185
-
2186
- <span class='rubyid_graph identifier id'>graph</span>
2187
- <span class='rubyid_end end kw'>end</span>
2188
- </pre>
2189
- </td>
2190
- </tr>
2191
- </table>
2192
- </div>
2193
-
2194
- <div class="method_details ">
2195
- <h3 class="signature " id="dependencies_notation-instance_method">
2196
-
2197
- - (<tt>Array&lt;String&gt;</tt>) <strong>dependencies_notation</strong>
2198
-
2199
-
2200
-
2201
-
2202
-
2203
- </h3><div class="docstring">
2204
- <div class="discussion">
2205
-
2206
- <p>Get array of dependencies as notation</p>
2207
-
2208
-
2209
- </div>
2210
- </div>
2211
- <div class="tags">
2212
-
2213
- <p class="tag_title">Returns:</p>
2214
- <ul class="return">
2215
-
2216
- <li>
2217
-
2218
-
2219
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2220
-
2221
-
2222
-
2223
- &mdash;
2224
- <div class='inline'>
2225
- <p>of notations</p>
2226
- </div>
2227
-
2228
- </li>
2229
-
2230
- </ul>
2231
-
2232
- <p class="tag_title">See Also:</p>
2233
- <ul class="see">
2234
-
2235
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
2236
-
2237
- </ul>
2238
-
2239
- </div><table class="source_code">
2240
- <tr>
2241
- <td>
2242
- <pre class="lines">
2243
-
2244
-
2245
- 261
2246
- 262
2247
- 263</pre>
2248
- </td>
2249
- <td>
2250
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 261</span>
2251
-
2252
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_dependencies_notation identifier id'>dependencies_notation</span>
2253
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span><span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getDependenciesNotation identifier id'>getDependenciesNotation</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
2254
- <span class='rubyid_end end kw'>end</span>
2255
- </pre>
2256
- </td>
2257
- </tr>
2258
- </table>
2259
- </div>
2260
-
2261
- <div class="method_details ">
2262
- <h3 class="signature " id="dependencies_path-instance_method">
2263
-
2264
- - (<tt>Array&lt;Hash&gt;</tt>) <strong>dependencies_path</strong>
2265
-
2266
-
2267
-
2268
-
2269
-
2270
- </h3><div class="docstring">
2271
- <div class="discussion">
2272
-
2273
- <p>Hash of dependency paths</p>
2274
-
2275
-
2276
- </div>
2277
- </div>
2278
- <div class="tags">
2279
-
2280
- <p class="tag_title">Returns:</p>
2281
- <ul class="return">
2282
-
2283
- <li>
2284
-
2285
-
2286
- <span class='type'>(<tt>Array&lt;Hash&gt;</tt>)</span>
2287
-
2288
-
2289
-
2290
- &mdash;
2291
- <div class='inline'>
2292
- <p>of { notation =&gt; path }</p>
2293
- </div>
2294
-
2295
- </li>
2296
-
2297
- </ul>
2298
-
2299
- </div><table class="source_code">
2300
- <tr>
2301
- <td>
2302
- <pre class="lines">
2303
-
2304
-
2305
- 268
2306
- 269
2307
- 270</pre>
2308
- </td>
2309
- <td>
2310
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 268</span>
2311
-
2312
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_dependencies_path identifier id'>dependencies_path</span>
2313
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_hash identifier id'>convert_to_ruby_hash</span><span class='lparen token'>(</span> <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getDependenciesPath identifier id'>getDependenciesPath</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='rubyid_true true kw'>true</span> <span class='rparen token'>)</span>
2314
- <span class='rubyid_end end kw'>end</span>
2315
- </pre>
2316
- </td>
2317
- </tr>
2318
- </table>
2319
- </div>
2320
-
2321
- <div class="method_details ">
2322
- <h3 class="signature " id="deploy_artifact-instance_method">
2323
-
2324
- - (<tt>Object</tt>) <strong>deploy_artifact</strong>(notation, file_path, url, opts = {})
2325
-
2326
-
2327
-
2328
-
2329
-
2330
- </h3><div class="docstring">
2331
- <div class="discussion">
2332
-
2333
- <p>Deploy artifact to remote repo url</p>
2334
-
2335
-
2336
- </div>
2337
- </div>
2338
- <div class="tags">
2339
- <p class="tag_title">Parameters:</p>
2340
- <ul class="param">
2341
-
2342
- <li>
2343
-
2344
- <span class='name'>notation</span>
2345
-
2346
-
2347
- <span class='type'>(<tt>String</tt>)</span>
2348
-
2349
-
2350
-
2351
- </li>
2352
-
2353
- <li>
2354
-
2355
- <span class='name'>file_path</span>
2356
-
2357
-
2358
- <span class='type'>(<tt>String</tt>)</span>
2359
-
2360
-
2361
-
2362
- &mdash;
2363
- <div class='inline'>
2364
- <p>to artifact to deploy</p>
2365
- </div>
2366
-
2367
- </li>
2368
-
2369
- <li>
2370
-
2371
- <span class='name'>url</span>
2372
-
2373
-
2374
- <span class='type'>(<tt>String</tt>)</span>
2375
-
2376
-
2377
-
2378
- &mdash;
2379
- <div class='inline'>
2380
- <p>to deploy to</p>
2381
- </div>
2382
-
2383
- </li>
2384
-
2385
- <li>
2386
-
2387
- <span class='name'>opts</span>
2388
-
2389
-
2390
- <span class='type'>(<tt>Hash</tt>)</span>
2391
-
2392
-
2393
- <em class="default">(defaults to: <tt>{}</tt>)</em>
2394
-
2395
-
2396
- </li>
2397
-
2398
- </ul>
2399
-
2400
-
2401
-
2402
-
2403
-
2404
-
2405
-
2406
-
2407
-
2408
-
2409
- <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
2410
- <ul class="option">
2411
-
2412
- <li>
2413
- <span class="name">:pom_path</span>
2414
- <span class="type">(<tt>String</tt>)</span>
2415
- <span class="default">
2416
-
2417
- </span>
2418
-
2419
- &mdash; <div class='inline'>
2420
- <p>path to pom.xml</p>
2421
- </div>
2422
-
2423
- </li>
2424
-
2425
- <li>
2426
- <span class="name">:username</span>
2427
- <span class="type">(<tt>String</tt>)</span>
2428
- <span class="default">
2429
-
2430
- </span>
2431
-
2432
- &mdash; <div class='inline'>
2433
- <p>for optional auth</p>
2434
- </div>
2435
-
2436
- </li>
2437
-
2438
- <li>
2439
- <span class="name">:password</span>
2440
- <span class="type">(<tt>String</tt>)</span>
2441
- <span class="default">
2442
-
2443
- </span>
2444
-
2445
- &mdash; <div class='inline'>
2446
- <p>for optional auth</p>
2447
- </div>
2448
-
2449
- </li>
2450
-
2451
- <li>
2452
- <span class="name">:pub_key</span>
2453
- <span class="type">(<tt>String</tt>)</span>
2454
- <span class="default">
2455
-
2456
- </span>
2457
-
2458
- &mdash; <div class='inline'>
2459
- <p>for optional auth</p>
2460
- </div>
2461
-
2462
- </li>
2463
-
2464
- <li>
2465
- <span class="name">:pub_key_passphrase</span>
2466
- <span class="type">(<tt>String</tt>)</span>
2467
- <span class="default">
2468
-
2469
- </span>
2470
-
2471
- &mdash; <div class='inline'>
2472
- <p>for optional auth</p>
2473
- </div>
2474
-
2475
- </li>
2476
-
2477
- </ul>
2478
-
2479
-
2480
-
2481
- </div><table class="source_code">
2482
- <tr>
2483
- <td>
2484
- <pre class="lines">
2485
-
2486
-
2487
- 392
2488
- 393
2489
- 394
2490
- 395
2491
- 396
2492
- 397
2493
- 398
2494
- 399
2495
- 400
2496
- 401
2497
- 402
2498
- 403
2499
- 404
2500
- 405
2501
- 406
2502
- 407
2503
- 408
2504
- 409
2505
- 410</pre>
2506
- </td>
2507
- <td>
2508
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 392</span>
2509
-
2510
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_deploy_artifact identifier id'>deploy_artifact</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_file_path identifier id'>file_path</span><span class='comma token'>,</span> <span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span> <span class='rparen token'>)</span>
2511
- <span class='rubyid_artifact identifier id'>artifact</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_create identifier id'>create</span><span class='lparen token'>(</span> <span class='string val'>&quot;com.tobedevoured.naether.deploy.DeployArtifact&quot;</span> <span class='rparen token'>)</span>
2512
-
2513
- <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_setRemoteRepo identifier id'>setRemoteRepo</span><span class='lparen token'>(</span> <span class='rubyid_url identifier id'>url</span> <span class='rparen token'>)</span>
2514
- <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_setNotation identifier id'>setNotation</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span> <span class='rparen token'>)</span>
2515
- <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_setFilePath identifier id'>setFilePath</span><span class='lparen token'>(</span> <span class='rubyid_file_path identifier id'>file_path</span> <span class='rparen token'>)</span>
2516
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:pom_path</span><span class='rbrack token'>]</span>
2517
- <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_setPomPath identifier id'>setPomPath</span><span class='lparen token'>(</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:pom_path</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
2518
- <span class='rubyid_end end kw'>end</span>
2519
-
2520
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:username</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:pub_key</span><span class='rbrack token'>]</span>
2521
- <span class='rubyid_artifact identifier id'>artifact</span><span class='dot token'>.</span><span class='rubyid_setAuth identifier id'>setAuth</span><span class='lparen token'>(</span><span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:username</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:password</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:pub_key</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:pub_key_passphrase</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
2522
- <span class='rubyid_end end kw'>end</span>
2523
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span> <span class='eq op'>==</span> <span class='string val'>'java'</span>
2524
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_deployArtifact identifier id'>deployArtifact</span><span class='lparen token'>(</span><span class='rubyid_artifact identifier id'>artifact</span><span class='rparen token'>)</span>
2525
- <span class='rubyid_else else kw'>else</span>
2526
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid__invoke identifier id'>_invoke</span><span class='lparen token'>(</span> <span class='string val'>'deployArtifact'</span><span class='comma token'>,</span> <span class='string val'>'Lcom.tobedevoured.naether.deploy.DeployArtifact;'</span><span class='comma token'>,</span> <span class='rubyid_artifact identifier id'>artifact</span> <span class='rparen token'>)</span>
2527
- <span class='rubyid_end end kw'>end</span>
2528
- <span class='rubyid_end end kw'>end</span>
2529
- </pre>
2530
- </td>
2531
- </tr>
2532
- </table>
2533
- </div>
2534
-
2535
- <div class="method_details ">
2536
- <h3 class="signature " id="download_artifacts-instance_method">
2537
-
2538
- - (<tt>Array&lt;String&gt;</tt>) <strong>download_artifacts</strong>(notations)
2539
-
2540
-
2541
-
2542
-
2543
-
2544
- </h3><div class="docstring">
2545
- <div class="discussion">
2546
-
2547
- <p>Download artifacts</p>
2548
-
2549
-
2550
- </div>
2551
- </div>
2552
- <div class="tags">
2553
- <p class="tag_title">Parameters:</p>
2554
- <ul class="param">
2555
-
2556
- <li>
2557
-
2558
- <span class='name'>notations</span>
2559
-
2560
-
2561
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2562
-
2563
-
2564
-
2565
- </li>
2566
-
2567
- </ul>
2568
-
2569
- <p class="tag_title">Returns:</p>
2570
- <ul class="return">
2571
-
2572
- <li>
2573
-
2574
-
2575
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2576
-
2577
-
2578
-
2579
- &mdash;
2580
- <div class='inline'>
2581
- <p>of paths of downloaded artifacts</p>
2582
- </div>
2583
-
2584
- </li>
2585
-
2586
- </ul>
2587
-
2588
- </div><table class="source_code">
2589
- <tr>
2590
- <td>
2591
- <pre class="lines">
2592
-
2593
-
2594
- 359
2595
- 360
2596
- 361
2597
- 362
2598
- 363
2599
- 364
2600
- 365
2601
- 366
2602
- 367
2603
- 368
2604
- 369
2605
- 370
2606
- 371
2607
- 372
2608
- 373
2609
- 374
2610
- 375
2611
- 376
2612
- 377
2613
- 378</pre>
2614
- </td>
2615
- <td>
2616
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 359</span>
2617
-
2618
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_download_artifacts identifier id'>download_artifacts</span><span class='lparen token'>(</span> <span class='rubyid_notations identifier id'>notations</span> <span class='rparen token'>)</span>
2619
- <span class='rubyid_if if kw'>if</span><span class='lparen token'>(</span> <span class='rubyid_notations identifier id'>notations</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_String constant id'>String</span> <span class='rparen token'>)</span>
2620
- <span class='rubyid_notations identifier id'>notations</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_notations identifier id'>notations</span><span class='rbrack token'>]</span>
2621
- <span class='rubyid_end end kw'>end</span>
2622
-
2623
- <span class='rubyid_files identifier id'>files</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span>
2624
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span> <span class='eq op'>==</span> <span class='string val'>'java'</span>
2625
- <span class='rubyid_files identifier id'>files</span> <span class='assign token'>=</span> <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_downloadArtifacts identifier id'>downloadArtifacts</span><span class='lparen token'>(</span> <span class='rubyid_notations identifier id'>notations</span> <span class='rparen token'>)</span>
2626
- <span class='rubyid_else else kw'>else</span>
2627
- <span class='rubyid_list identifier id'>list</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_java_list identifier id'>convert_to_java_list</span><span class='lparen token'>(</span> <span class='rubyid_notations identifier id'>notations</span> <span class='rparen token'>)</span>
2628
- <span class='rubyid_files identifier id'>files</span> <span class='assign token'>=</span> <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid__invoke identifier id'>_invoke</span><span class='lparen token'>(</span><span class='string val'>'downloadArtifacts'</span><span class='comma token'>,</span> <span class='string val'>'Ljava.util.List;'</span><span class='comma token'>,</span> <span class='rubyid_list identifier id'>list</span><span class='rparen token'>)</span>
2629
- <span class='rubyid_end end kw'>end</span>
2630
-
2631
- <span class='rubyid_paths identifier id'>paths</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
2632
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span><span class='rubyid_files identifier id'>files</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_file identifier id'>file</span><span class='bitor op'>|</span>
2633
- <span class='rubyid_paths identifier id'>paths</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_file identifier id'>file</span><span class='dot token'>.</span><span class='rubyid_getAbsolutePath identifier id'>getAbsolutePath</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
2634
- <span class='rubyid_end end kw'>end</span>
2635
-
2636
- <span class='rubyid_paths identifier id'>paths</span>
2637
- <span class='rubyid_end end kw'>end</span>
2638
- </pre>
2639
- </td>
2640
- </tr>
2641
- </table>
2642
- </div>
2643
-
2644
- <div class="method_details ">
2645
- <h3 class="signature " id="install-instance_method">
2646
-
2647
- - (<tt>Object</tt>) <strong>install</strong>(notation, pom_path = nil, jar_path = nil)
2648
-
2649
-
2650
-
2651
-
2652
-
2653
- </h3><div class="docstring">
2654
- <div class="discussion">
2655
-
2656
- <p>Install artifact or pom to local repo, must specify pom_path and/or
2657
- jar_path</p>
2658
-
2659
-
2660
- </div>
2661
- </div>
2662
- <div class="tags">
2663
- <p class="tag_title">Parameters:</p>
2664
- <ul class="param">
2665
-
2666
- <li>
2667
-
2668
- <span class='name'>notation</span>
2669
-
2670
-
2671
- <span class='type'>(<tt>String</tt>)</span>
2672
-
2673
-
2674
-
2675
- </li>
2676
-
2677
- <li>
2678
-
2679
- <span class='name'>pom_path</span>
2680
-
2681
-
2682
- <span class='type'>(<tt>String</tt>)</span>
2683
-
2684
-
2685
- <em class="default">(defaults to: <tt>nil</tt>)</em>
2686
-
2687
-
2688
- </li>
2689
-
2690
- <li>
2691
-
2692
- <span class='name'>jar_path</span>
2693
-
2694
-
2695
- <span class='type'>(<tt>String</tt>)</span>
2696
-
2697
-
2698
- <em class="default">(defaults to: <tt>nil</tt>)</em>
2699
-
2700
-
2701
- </li>
2702
-
2703
- </ul>
2704
-
2705
-
2706
- </div><table class="source_code">
2707
- <tr>
2708
- <td>
2709
- <pre class="lines">
2710
-
2711
-
2712
- 417
2713
- 418
2714
- 419</pre>
2715
- </td>
2716
- <td>
2717
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 417</span>
2718
-
2719
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_install identifier id'>install</span><span class='lparen token'>(</span> <span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_pom_path identifier id'>pom_path</span> <span class='assign token'>=</span><span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_jar_path identifier id'>jar_path</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rparen token'>)</span>
2720
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_install identifier id'>install</span><span class='lparen token'>(</span><span class='rubyid_notation identifier id'>notation</span><span class='comma token'>,</span> <span class='rubyid_pom_path identifier id'>pom_path</span><span class='comma token'>,</span> <span class='rubyid_jar_path identifier id'>jar_path</span><span class='rparen token'>)</span>
2721
- <span class='rubyid_end end kw'>end</span>
2722
- </pre>
2723
- </td>
2724
- </tr>
2725
- </table>
2726
- </div>
2727
-
2728
- <div class="method_details ">
2729
- <h3 class="signature " id="load_dependencies_to_classpath-instance_method">
2730
-
2731
- - (<tt>Array</tt>) <strong>load_dependencies_to_classpath</strong>
2732
-
2733
-
2734
-
2735
-
2736
-
2737
- </h3><div class="docstring">
2738
- <div class="discussion">
2739
-
2740
- <p>Load dependencies to Classpath</p>
2741
-
2742
-
2743
- </div>
2744
- </div>
2745
- <div class="tags">
2746
-
2747
- <p class="tag_title">Returns:</p>
2748
- <ul class="return">
2749
-
2750
- <li>
2751
-
2752
-
2753
- <span class='type'>(<tt>Array</tt>)</span>
2754
-
2755
-
2756
-
2757
- &mdash;
2758
- <div class='inline'>
2759
- <p>of loaded jars</p>
2760
- </div>
2761
-
2762
- </li>
2763
-
2764
- </ul>
2765
-
2766
- </div><table class="source_code">
2767
- <tr>
2768
- <td>
2769
- <pre class="lines">
2770
-
2771
-
2772
- 306
2773
- 307
2774
- 308
2775
- 309
2776
- 310
2777
- 311</pre>
2778
- </td>
2779
- <td>
2780
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 306</span>
2781
-
2782
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_load_dependencies_to_classpath identifier id'>load_dependencies_to_classpath</span>
2783
- <span class='rubyid_jars identifier id'>jars</span> <span class='assign token'>=</span> <span class='rubyid_dependencies_classpath identifier id'>dependencies_classpath</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>&quot;:&quot;</span><span class='rparen token'>)</span>
2784
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_load_jars identifier id'>load_jars</span><span class='lparen token'>(</span><span class='rubyid_jars identifier id'>jars</span><span class='rparen token'>)</span>
2785
-
2786
- <span class='rubyid_jars identifier id'>jars</span>
2787
- <span class='rubyid_end end kw'>end</span>
2788
- </pre>
2789
- </td>
2790
- </tr>
2791
- </table>
2792
- </div>
2793
-
2794
- <div class="method_details ">
2795
- <h3 class="signature " id="local_repo_path-instance_method">
2796
-
2797
- - (<tt>String</tt>) <strong>local_repo_path</strong>
2798
-
2799
-
2800
-
2801
-
2802
-
2803
- </h3><div class="docstring">
2804
- <div class="discussion">
2805
-
2806
- <p>Path to local maven repo</p>
2807
-
2808
-
2809
- </div>
2810
- </div>
2811
- <div class="tags">
2812
-
2813
- <p class="tag_title">Returns:</p>
2814
- <ul class="return">
2815
-
2816
- <li>
2817
-
2818
-
2819
- <span class='type'>(<tt>String</tt>)</span>
2820
-
2821
-
2822
-
2823
- &mdash;
2824
- <div class='inline'>
2825
- <p>path to local repo</p>
2826
- </div>
2827
-
2828
- </li>
2829
-
2830
- </ul>
2831
-
2832
- </div><table class="source_code">
2833
- <tr>
2834
- <td>
2835
- <pre class="lines">
2836
-
2837
-
2838
- 99
2839
- 100
2840
- 101</pre>
2841
- </td>
2842
- <td>
2843
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 99</span>
2844
-
2845
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_local_repo_path identifier id'>local_repo_path</span>
2846
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getLocalRepoPath identifier id'>getLocalRepoPath</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
2847
- <span class='rubyid_end end kw'>end</span>
2848
- </pre>
2849
- </td>
2850
- </tr>
2851
- </table>
2852
- </div>
2853
-
2854
- <div class="method_details ">
2855
- <h3 class="signature " id="local_repo_path=-instance_method">
2856
-
2857
- - (<tt>Object</tt>) <strong>local_repo_path=</strong>(path)
2858
-
2859
-
2860
-
2861
-
2862
-
2863
- </h3><div class="docstring">
2864
- <div class="discussion">
2865
-
2866
- <p>Set path to local maven repo</p>
2867
-
2868
-
2869
- </div>
2870
- </div>
2871
- <div class="tags">
2872
- <p class="tag_title">Parameters:</p>
2873
- <ul class="param">
2874
-
2875
- <li>
2876
-
2877
- <span class='name'>path</span>
2878
-
2879
-
2880
- <span class='type'>(<tt>String</tt>)</span>
2881
-
2882
-
2883
-
2884
- &mdash;
2885
- <div class='inline'>
2886
- <p>local repo</p>
2887
- </div>
2888
-
2889
- </li>
2890
-
2891
- </ul>
2892
-
2893
-
2894
- </div><table class="source_code">
2895
- <tr>
2896
- <td>
2897
- <pre class="lines">
2898
-
2899
-
2900
- 106
2901
- 107
2902
- 108</pre>
2903
- </td>
2904
- <td>
2905
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 106</span>
2906
-
2907
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_local_repo_path= identifier id'>local_repo_path=</span><span class='lparen token'>(</span> <span class='rubyid_path identifier id'>path</span> <span class='rparen token'>)</span>
2908
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_setLocalRepoPath identifier id'>setLocalRepoPath</span><span class='lparen token'>(</span> <span class='rubyid_path identifier id'>path</span> <span class='rparen token'>)</span>
2909
- <span class='rubyid_end end kw'>end</span>
2910
- </pre>
2911
- </td>
2912
- </tr>
2913
- </table>
2914
- </div>
2915
-
2916
- <div class="method_details ">
2917
- <h3 class="signature " id="remote_repositories-instance_method">
2918
-
2919
- - (<tt>Array</tt>) <strong>remote_repositories</strong>
2920
-
2921
-
2922
-
2923
-
2924
-
2925
- </h3><div class="docstring">
2926
- <div class="discussion">
2927
-
2928
- <p>Get remote repositories</p>
2929
-
2930
-
2931
- </div>
2932
- </div>
2933
- <div class="tags">
2934
-
2935
- <p class="tag_title">Returns:</p>
2936
- <ul class="return">
2937
-
2938
- <li>
2939
-
2940
-
2941
- <span class='type'>(<tt>Array</tt>)</span>
2942
-
2943
-
2944
-
2945
- &mdash;
2946
- <div class='inline'>
2947
- <p>of remote repos</p>
2948
- </div>
2949
-
2950
- </li>
2951
-
2952
- </ul>
2953
-
2954
- </div><table class="source_code">
2955
- <tr>
2956
- <td>
2957
- <pre class="lines">
2958
-
2959
-
2960
- 85
2961
- 86
2962
- 87</pre>
2963
- </td>
2964
- <td>
2965
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 85</span>
2966
-
2967
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_remote_repositories identifier id'>remote_repositories</span>
2968
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span><span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getRemoteRepositories identifier id'>getRemoteRepositories</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
2969
- <span class='rubyid_end end kw'>end</span>
2970
- </pre>
2971
- </td>
2972
- </tr>
2973
- </table>
2974
- </div>
2975
-
2976
- <div class="method_details ">
2977
- <h3 class="signature " id="remote_repository_urls-instance_method">
2978
-
2979
- - (<tt>Array&lt;String&gt;</tt>) <strong>remote_repository_urls</strong>
2980
-
2981
-
2982
-
2983
-
2984
-
2985
- </h3><div class="docstring">
2986
- <div class="discussion">
2987
-
2988
- <p>Get remote repositories as urls</p>
2989
-
2990
-
2991
- </div>
2992
- </div>
2993
- <div class="tags">
2994
-
2995
- <p class="tag_title">Returns:</p>
2996
- <ul class="return">
2997
-
2998
- <li>
2999
-
3000
-
3001
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
3002
-
3003
-
3004
-
3005
- &mdash;
3006
- <div class='inline'>
3007
- <p>of String urls</p>
3008
- </div>
3009
-
3010
- </li>
3011
-
3012
- </ul>
3013
-
3014
- </div><table class="source_code">
3015
- <tr>
3016
- <td>
3017
- <pre class="lines">
3018
-
3019
-
3020
- 92
3021
- 93
3022
- 94</pre>
3023
- </td>
3024
- <td>
3025
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 92</span>
3026
-
3027
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_remote_repository_urls identifier id'>remote_repository_urls</span>
3028
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span><span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_getRemoteRepositoryUrls identifier id'>getRemoteRepositoryUrls</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
3029
- <span class='rubyid_end end kw'>end</span>
3030
- </pre>
3031
- </td>
3032
- </tr>
3033
- </table>
3034
- </div>
3035
-
3036
- <div class="method_details ">
3037
- <h3 class="signature " id="resolve_dependencies-instance_method">
3038
-
3039
- - (<tt>Array&lt;String&gt;</tt>) <strong>resolve_dependencies</strong>(download_artifacts = true, properties = nil)
3040
-
3041
-
3042
-
3043
-
3044
-
3045
- </h3><div class="docstring">
3046
- <div class="discussion">
3047
-
3048
- <p>Resolve dependencies</p>
3049
-
3050
-
3051
- </div>
3052
- </div>
3053
- <div class="tags">
3054
-
3055
- <p class="tag_title">Returns:</p>
3056
- <ul class="return">
3057
-
3058
- <li>
3059
-
3060
-
3061
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
3062
-
3063
-
3064
-
3065
- &mdash;
3066
- <div class='inline'>
3067
- <p>of notations</p>
3068
- </div>
3069
-
3070
- </li>
3071
-
3072
- </ul>
3073
-
3074
- <p class="tag_title">See Also:</p>
3075
- <ul class="see">
3076
-
3077
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
3078
-
3079
- </ul>
3080
-
3081
- </div><table class="source_code">
3082
- <tr>
3083
- <td>
3084
- <pre class="lines">
3085
-
3086
-
3087
- 317
3088
- 318
3089
- 319
3090
- 320
3091
- 321
3092
- 322
3093
- 323
3094
- 324
3095
- 325
3096
- 326
3097
- 327
3098
- 328
3099
- 329</pre>
3100
- </td>
3101
- <td>
3102
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 317</span>
3103
-
3104
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_resolve_dependencies identifier id'>resolve_dependencies</span><span class='lparen token'>(</span> <span class='rubyid_download_artifacts identifier id'>download_artifacts</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='rubyid_properties identifier id'>properties</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rparen token'>)</span>
3105
-
3106
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_properties identifier id'>properties</span>
3107
- <span class='comment val'># Convert to HashMap</span>
3108
- <span class='rubyid_map identifier id'>map</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_create identifier id'>create</span><span class='lparen token'>(</span> <span class='string val'>&quot;java.util.HashMap&quot;</span> <span class='rparen token'>)</span>
3109
- <span class='rubyid_properties identifier id'>properties</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_k identifier id'>k</span><span class='comma token'>,</span><span class='rubyid_v identifier id'>v</span><span class='bitor op'>|</span>
3110
- <span class='rubyid_map identifier id'>map</span><span class='dot token'>.</span><span class='rubyid_put identifier id'>put</span><span class='lparen token'>(</span> <span class='rubyid_k identifier id'>k</span><span class='comma token'>,</span> <span class='rubyid_v identifier id'>v</span> <span class='rparen token'>)</span>
3111
- <span class='rubyid_end end kw'>end</span>
3112
- <span class='rubyid_end end kw'>end</span>
3113
-
3114
- <span class='rubyid_@resolver ivar id'>@resolver</span><span class='dot token'>.</span><span class='rubyid_resolveDependencies identifier id'>resolveDependencies</span><span class='lparen token'>(</span> <span class='rubyid_download_artifacts identifier id'>download_artifacts</span><span class='comma token'>,</span> <span class='rubyid_map identifier id'>map</span> <span class='rparen token'>)</span><span class='semicolon token'>;</span>
3115
- <span class='rubyid_dependencies_notation identifier id'>dependencies_notation</span>
3116
- <span class='rubyid_end end kw'>end</span>
3117
- </pre>
3118
- </td>
3119
- </tr>
3120
- </table>
3121
- </div>
3122
-
3123
- <div class="method_details ">
3124
- <h3 class="signature " id="set_log_level-instance_method">
3125
-
3126
- - (<tt>Object</tt>) <strong>set_log_level</strong>(level)
3127
-
3128
-
3129
-
3130
-
3131
-
3132
- </h3><div class="docstring">
3133
- <div class="discussion">
3134
-
3135
- <p>Set Log level for Naether Java logging</p>
3136
-
3137
-
3138
- </div>
3139
- </div>
3140
- <div class="tags">
3141
- <p class="tag_title">Parameters:</p>
3142
- <ul class="param">
3143
-
3144
- <li>
3145
-
3146
- <span class='name'>level</span>
3147
-
3148
-
3149
- <span class='type'>(<tt>String</tt>)</span>
3150
-
3151
-
3152
-
3153
- &mdash;
3154
- <div class='inline'>
3155
- <p>to debug, info, warn, or error</p>
3156
- </div>
3157
-
3158
- </li>
3159
-
3160
- </ul>
3161
-
3162
-
3163
- </div><table class="source_code">
3164
- <tr>
3165
- <td>
3166
- <pre class="lines">
3167
-
3168
-
3169
- 424
3170
- 425
3171
- 426</pre>
3172
- </td>
3173
- <td>
3174
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 424</span>
3175
-
3176
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_set_log_level identifier id'>set_log_level</span><span class='lparen token'>(</span> <span class='rubyid_level identifier id'>level</span> <span class='rparen token'>)</span>
3177
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_exec_static_method identifier id'>exec_static_method</span><span class='lparen token'>(</span><span class='string val'>'com.tobedevoured.naether.util.LogUtil'</span><span class='comma token'>,</span> <span class='string val'>'changeLevel'</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='string val'>'com.tobedevoured'</span><span class='comma token'>,</span> <span class='rubyid_level identifier id'>level</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
3178
- <span class='rubyid_end end kw'>end</span>
3179
- </pre>
3180
- </td>
3181
- </tr>
3182
- </table>
3183
- </div>
3184
-
3185
- <div class="method_details ">
3186
- <h3 class="signature " id="to_local_paths-instance_method">
3187
-
3188
- - (<tt>Array&lt;String&gt;</tt>) <strong>to_local_paths</strong>(notations)
3189
-
3190
-
3191
-
3192
-
3193
-
3194
- </h3><div class="docstring">
3195
- <div class="discussion">
3196
-
3197
- <p>Convert notations to local paths of artifacts</p>
3198
-
3199
-
3200
- </div>
3201
- </div>
3202
- <div class="tags">
3203
- <p class="tag_title">Parameters:</p>
3204
- <ul class="param">
3205
-
3206
- <li>
3207
-
3208
- <span class='name'>notations</span>
3209
-
3210
-
3211
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
3212
-
3213
-
3214
-
3215
- </li>
3216
-
3217
- </ul>
3218
-
3219
- <p class="tag_title">Returns:</p>
3220
- <ul class="return">
3221
-
3222
- <li>
3223
-
3224
-
3225
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
3226
-
3227
-
3228
-
3229
- &mdash;
3230
- <div class='inline'>
3231
- <p>of paths to artifacts</p>
3232
- </div>
3233
-
3234
- </li>
3235
-
3236
- </ul>
3237
-
3238
- <p class="tag_title">See Also:</p>
3239
- <ul class="see">
3240
-
3241
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
3242
-
3243
- </ul>
3244
-
3245
- </div><table class="source_code">
3246
- <tr>
3247
- <td>
3248
- <pre class="lines">
3249
-
3250
-
3251
- 336
3252
- 337
3253
- 338
3254
- 339
3255
- 340
3256
- 341
3257
- 342
3258
- 343
3259
- 344
3260
- 345
3261
- 346
3262
- 347
3263
- 348
3264
- 349
3265
- 350
3266
- 351
3267
- 352
3268
- 353</pre>
294
+ 42
295
+ 43
296
+ 44</pre>
3269
297
  </td>
3270
298
  <td>
3271
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 336</span>
299
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 42</span>
3272
300
 
3273
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_local_paths identifier id'>to_local_paths</span><span class='lparen token'>(</span> <span class='rubyid_notations identifier id'>notations</span> <span class='rparen token'>)</span>
3274
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_Naether constant id'>Naether</span><span class='dot token'>.</span><span class='rubyid_platform identifier id'>platform</span> <span class='eq op'>==</span> <span class='string val'>'java'</span>
3275
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span>
3276
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_exec_static_method identifier id'>exec_static_method</span><span class='lparen token'>(</span>
3277
- <span class='string val'>'com.tobedevoured.naether.util.Notation'</span><span class='comma token'>,</span>
3278
- <span class='string val'>'getLocalPaths'</span><span class='comma token'>,</span>
3279
- <span class='lbrack token'>[</span><span class='rubyid_local_repo_path identifier id'>local_repo_path</span><span class='comma token'>,</span> <span class='rubyid_notations identifier id'>notations</span> <span class='rbrack token'>]</span><span class='comma token'>,</span>
3280
- <span class='lbrack token'>[</span><span class='string val'>'java.lang.String'</span><span class='comma token'>,</span> <span class='string val'>'java.util.List'</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span> <span class='rparen token'>)</span>
3281
- <span class='rubyid_else else kw'>else</span>
3282
- <span class='rubyid_paths identifier id'>paths</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_exec_static_method identifier id'>exec_static_method</span><span class='lparen token'>(</span>
3283
- <span class='string val'>'com.tobedevoured.naether.util.Notation'</span><span class='comma token'>,</span>
3284
- <span class='string val'>'getLocalPaths'</span><span class='comma token'>,</span>
3285
- <span class='lbrack token'>[</span><span class='rubyid_local_repo_path identifier id'>local_repo_path</span><span class='comma token'>,</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_java_list identifier id'>convert_to_java_list</span><span class='lparen token'>(</span><span class='rubyid_notations identifier id'>notations</span><span class='rparen token'>)</span> <span class='rbrack token'>]</span><span class='comma token'>,</span>
3286
- <span class='lbrack token'>[</span><span class='string val'>'java.lang.String'</span><span class='comma token'>,</span> <span class='string val'>'java.util.List'</span><span class='rbrack token'>]</span> <span class='rparen token'>)</span>
3287
- <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Java constant id'>Java</span><span class='dot token'>.</span><span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span> <span class='rubyid_paths identifier id'>paths</span><span class='comma token'>,</span> <span class='rubyid_true true kw'>true</span> <span class='rparen token'>)</span>
3288
- <span class='rubyid_end end kw'>end</span>
3289
-
3290
- <span class='rubyid_end end kw'>end</span>
3291
- </pre>
301
+ #
302
+ def platform
303
+ Naether::Configurat</pre>
3292
304
  </td>
3293
305
  </tr>
3294
306
  </table>
@@ -3299,9 +311,9 @@ jar_path</p>
3299
311
  </div>
3300
312
 
3301
313
  <div id="footer">
3302
- Generated on Mon Oct 15 21:42:25 2012 by
314
+ Generated on Fri Sep 27 17:50:12 2013 by
3303
315
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3304
- 0.8.3 (ruby-1.9.2).
316
+ 0.8.2.1 (ruby-1.9.3).
3305
317
  </div>
3306
318
 
3307
319
  </body>