naether 0.3.1-java → 0.3.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -0
- data/VERSION +1 -1
- data/jar_dependencies.yml +34 -34
- data/lib/naether.rb +32 -6
- data/naether-0.3.1.jar +0 -0
- data/pom.xml +14 -3
- metadata +3 -3
- data/naether-0.2.1.jar +0 -0
data/README.rdoc
CHANGED
@@ -10,6 +10,15 @@ https://github.com/mguymon/naether
|
|
10
10
|
gem install naether
|
11
11
|
|
12
12
|
|
13
|
+
=== About
|
14
|
+
|
15
|
+
Built do power the {Buildr Resolver}[https://github.com/mguymon/buildr-resolver] for {Buildr}[https://github.com/apache/buildr],
|
16
|
+
enabling dependency resolution to Buildr projects. The Java {Naether.java}[https://github.com/mguymon/naether/blob/master/src/main/java/com/slackworks/naether/Naether.java]
|
17
|
+
is a basic wrapper for {Aether}[https://github.com/sonatype/sonatype-aether], Maven 3's dependency resolution framework.
|
18
|
+
The Ruby {naether.rb}[https://github.com/mguymon/naether/blob/master/src/main/ruby/naether.rb] provides access to Java
|
19
|
+
from Ruby. JRuby is natively supported, other Ruby vms will use {Rjb}[http://rjb.rubyforge.org] to proxy over JNI.
|
20
|
+
|
21
|
+
|
13
22
|
== License
|
14
23
|
|
15
24
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/jar_dependencies.yml
CHANGED
@@ -1,36 +1,36 @@
|
|
1
1
|
---
|
2
2
|
:dependencies:
|
3
|
-
- com.jcraft:jsch:jar:0.1.38
|
4
|
-
- com.ning:async-http-client:jar:1.6.1
|
5
|
-
- org.apache.xbean:xbean-reflect:jar:3.4
|
6
|
-
- org.jboss.netty:netty:jar:3.2.4.Final
|
7
|
-
- com.google.collections:google-collections:jar:1.0
|
8
|
-
- ch.qos.logback:logback-classic:jar:0.9.24
|
9
|
-
- ch.qos.logback:logback-core:jar:0.9.24
|
10
|
-
- org.slf4j:slf4j-api:jar:1.6.1
|
11
|
-
- org.slf4j:jcl-over-slf4j:jar:1.6.1
|
12
|
-
- org.slf4j:log4j-over-slf4j:jar:1.6.1
|
13
|
-
- org.sonatype.aether:aether-api:jar:1.11
|
14
|
-
- org.sonatype.aether:aether-util:jar:1.11
|
15
|
-
- org.sonatype.aether:aether-impl:jar:1.11
|
16
|
-
- org.sonatype.aether:aether-spi:jar:1.11
|
17
|
-
- org.sonatype.aether:aether-connector-file:jar:1.11
|
18
|
-
- org.sonatype.aether:aether-connector-asynchttpclient:jar:1.11
|
19
|
-
- org.sonatype.aether:aether-connector-wagon:jar:1.11
|
20
|
-
- org.apache.maven:maven-model-v3:jar:2.0
|
21
|
-
- org.apache.maven:maven-aether-provider:jar:3.0.2
|
22
|
-
- org.apache.maven:maven-model:jar:3.0.2
|
23
|
-
- org.apache.maven:maven-model-builder:jar:3.0.2
|
24
|
-
- org.apache.maven:maven-repository-metadata:jar:3.0.2
|
25
|
-
- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6
|
26
|
-
- org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-7
|
27
|
-
- org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-7
|
28
|
-
- org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-7
|
29
|
-
- org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7
|
30
|
-
- org.apache.maven.wagon:wagon-file:jar:1.0-beta-7
|
31
|
-
- org.codehaus.plexus:plexus-utils:jar:1.5.8
|
32
|
-
- org.codehaus.plexus:plexus-container-default:jar:1.5.5
|
33
|
-
- org.codehaus.plexus:plexus-classworlds:jar:2.2.2
|
34
|
-
- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
|
35
|
-
- org.codehaus.plexus:plexus-interpolation:jar:1.14
|
36
|
-
- org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6
|
3
|
+
- com.jcraft:jsch:jar:0.1.38
|
4
|
+
- com.ning:async-http-client:jar:1.6.1
|
5
|
+
- org.apache.xbean:xbean-reflect:jar:3.4
|
6
|
+
- org.jboss.netty:netty:jar:3.2.4.Final
|
7
|
+
- com.google.collections:google-collections:jar:1.0
|
8
|
+
- ch.qos.logback:logback-classic:jar:0.9.24
|
9
|
+
- ch.qos.logback:logback-core:jar:0.9.24
|
10
|
+
- org.slf4j:slf4j-api:jar:1.6.1
|
11
|
+
- org.slf4j:jcl-over-slf4j:jar:1.6.1
|
12
|
+
- org.slf4j:log4j-over-slf4j:jar:1.6.1
|
13
|
+
- org.sonatype.aether:aether-api:jar:1.11
|
14
|
+
- org.sonatype.aether:aether-util:jar:1.11
|
15
|
+
- org.sonatype.aether:aether-impl:jar:1.11
|
16
|
+
- org.sonatype.aether:aether-spi:jar:1.11
|
17
|
+
- org.sonatype.aether:aether-connector-file:jar:1.11
|
18
|
+
- org.sonatype.aether:aether-connector-asynchttpclient:jar:1.11
|
19
|
+
- org.sonatype.aether:aether-connector-wagon:jar:1.11
|
20
|
+
- org.apache.maven:maven-model-v3:jar:2.0
|
21
|
+
- org.apache.maven:maven-aether-provider:jar:3.0.2
|
22
|
+
- org.apache.maven:maven-model:jar:3.0.2
|
23
|
+
- org.apache.maven:maven-model-builder:jar:3.0.2
|
24
|
+
- org.apache.maven:maven-repository-metadata:jar:3.0.2
|
25
|
+
- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6
|
26
|
+
- org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-7
|
27
|
+
- org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-7
|
28
|
+
- org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-7
|
29
|
+
- org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7
|
30
|
+
- org.apache.maven.wagon:wagon-file:jar:1.0-beta-7
|
31
|
+
- org.codehaus.plexus:plexus-utils:jar:1.5.8
|
32
|
+
- org.codehaus.plexus:plexus-container-default:jar:1.5.5
|
33
|
+
- org.codehaus.plexus:plexus-classworlds:jar:2.2.2
|
34
|
+
- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
|
35
|
+
- org.codehaus.plexus:plexus-interpolation:jar:1.14
|
36
|
+
- org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6
|
data/lib/naether.rb
CHANGED
@@ -42,7 +42,7 @@ class Naether
|
|
42
42
|
end
|
43
43
|
|
44
44
|
# Create new instance. Naether.create_from_paths and Naether.create_from_jars should be
|
45
|
-
# used instead of Naether.new
|
45
|
+
# used instead of Naether.new to ensure the dependencies for Naether are set into the classpath
|
46
46
|
def initialize()
|
47
47
|
|
48
48
|
if Naether.platform == 'java'
|
@@ -59,8 +59,12 @@ class Naether
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# Add remote repository
|
62
|
-
def add_remote_repository( url )
|
63
|
-
|
62
|
+
def add_remote_repository( url, username = nil, password = nil )
|
63
|
+
if username
|
64
|
+
@resolver.addRemoteRepositoryByUrl( url, username, password )
|
65
|
+
else
|
66
|
+
@resolver.addRemoteRepositoryByUrl( url )
|
67
|
+
end
|
64
68
|
end
|
65
69
|
|
66
70
|
# Array of remote repositories
|
@@ -119,13 +123,35 @@ class Naether
|
|
119
123
|
@instance.setNotation( notation )
|
120
124
|
@instance.setFilePath( file_path )
|
121
125
|
if opts[:pom_path]
|
122
|
-
@instance.setPomPath( pom_path )
|
126
|
+
@instance.setPomPath( opts[:pom_path] )
|
123
127
|
end
|
124
128
|
|
125
|
-
if opts[:
|
126
|
-
@instance.setAuth(opts[:
|
129
|
+
if opts[:username] || opts[:pub_key]
|
130
|
+
@instance.setAuth(opts[:username], opts[:password], opts[:pub_key], opts[:pub_key_passphrase] )
|
127
131
|
end
|
128
132
|
|
129
133
|
@resolver.deployArtifact(@instance)
|
130
134
|
end
|
135
|
+
|
136
|
+
# filePath to write the pom
|
137
|
+
# notation of the pom, groupId:artifactId:type:version
|
138
|
+
#
|
139
|
+
# loads all resolved dependencies into pom
|
140
|
+
def write_pom( notation, file_path )
|
141
|
+
if Naether.platform == 'java'
|
142
|
+
@project_instance = com.slackworks.naether.MavenProject.new
|
143
|
+
else
|
144
|
+
projectClass = Rjb::import('com.slackworks.naether.MavenProject')
|
145
|
+
@project_instance = projectClass.new
|
146
|
+
end
|
147
|
+
|
148
|
+
@project_instance.setNotation( notation )
|
149
|
+
|
150
|
+
dependencies().each do |notation|
|
151
|
+
@project_instance.addDependency( notation )
|
152
|
+
end
|
153
|
+
|
154
|
+
@project_instance.writePom( file_path )
|
155
|
+
|
156
|
+
end
|
131
157
|
end
|
data/naether-0.3.1.jar
ADDED
Binary file
|
data/pom.xml
CHANGED
@@ -4,12 +4,23 @@
|
|
4
4
|
|
5
5
|
<groupId>com.slackworks</groupId>
|
6
6
|
<artifactId>naether</artifactId>
|
7
|
-
<version>0.
|
7
|
+
<version>0.3.1</version>
|
8
8
|
<packaging>jar</packaging>
|
9
|
-
|
10
9
|
<name>naether</name>
|
11
10
|
<url>https://github.com/mguymon/naether</url>
|
12
|
-
|
11
|
+
<licenses>
|
12
|
+
<license>
|
13
|
+
<name>The Apache Software License, Version 2.0</name>
|
14
|
+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
15
|
+
<distribution>repo</distribution>
|
16
|
+
</license>
|
17
|
+
</licenses>
|
18
|
+
<scm>
|
19
|
+
<url>>scm:git:git@github.com/mguymon/naether.git</url>
|
20
|
+
<developerConnection>scm:git:git@github.com/mguymon/naether.git</developerConnection>
|
21
|
+
<connection>git@github.com/mguymon/naether.git</connection>
|
22
|
+
</scm>
|
23
|
+
|
13
24
|
<properties>
|
14
25
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
15
26
|
<aetherVersion>1.11</aetherVersion>
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: naether
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.2
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Michael Guymon
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-10 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -74,7 +74,7 @@ files:
|
|
74
74
|
- lib/naether.rb
|
75
75
|
- lib/naether/bootstrap.rb
|
76
76
|
- lib/naether/java.rb
|
77
|
-
- naether-0.
|
77
|
+
- naether-0.3.1.jar
|
78
78
|
- pom.xml
|
79
79
|
has_rdoc: true
|
80
80
|
homepage: http://github.com/mguymon/naether
|
data/naether-0.2.1.jar
DELETED
Binary file
|