naether 0.13.8-java → 0.14.0-java

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