naether 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.3
data/lib/naether.rb CHANGED
@@ -340,6 +340,10 @@ class Naether
340
340
 
341
341
  end
342
342
 
343
+ Naether::Java.convert_to_ruby_array(@project_instance.getRepositoryUrls()).each do |url|
344
+ add_remote_repository( url )
345
+ end
346
+
343
347
  Naether::Java.convert_to_ruby_array( deps, true )
344
348
  end
345
349
 
@@ -359,9 +363,9 @@ class Naether
359
363
  @project_instance = Naether::Java.create("com.slackworks.naether.maven.Project")
360
364
  @project_instance.setProjectNotation( notation )
361
365
 
362
- dependencies().each do |dep|
363
- @project_instance.addDependency( dep )
364
- end
366
+ @project_instance.setRepositories( @resolver.getRemoteRepositoryUrls() )
367
+
368
+ @project_instance.setDependencies( @resolver.getDependencies() )
365
369
 
366
370
  @project_instance.toXml()
367
371
 
@@ -375,15 +379,13 @@ class Naether
375
379
  @project_instance = Naether::Java.create("com.slackworks.naether.maven.Project")
376
380
  @project_instance.setProjectNotation( notation )
377
381
 
378
- dependencies().each do |notation|
379
- @project_instance.addDependency( notation )
380
- end
382
+ @project_instance.setDependencies( @resolver.getDependencies() )
381
383
 
382
384
  @project_instance.writePom( file_path )
383
385
 
384
386
  end
385
387
 
386
388
  def set_log_level( level )
387
- Naether::Java.java_class('com.slackworks.naether.LogUtil').changeLevel( 'com.slackworks', level )
389
+ Naether::Java.java_class('com.slackworks.naether.util.LogUtil').changeLevel( 'com.slackworks', level )
388
390
  end
389
391
  end
data/naether-0.8.3.jar ADDED
Binary file
data/pom.xml CHANGED
@@ -1,214 +1,214 @@
1
1
  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
- <modelVersion>4.0.0</modelVersion>
2
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
4
 
5
- <groupId>com.slackworks</groupId>
6
- <artifactId>naether</artifactId>
7
- <version>0.8.2</version>
8
- <packaging>jar</packaging>
9
- <name>naether</name>
10
- <url>https://github.com/mguymon/naether</url>
11
- <description>
5
+ <groupId>com.slackworks</groupId>
6
+ <artifactId>naether</artifactId>
7
+ <version>0.8.3</version>
8
+ <packaging>jar</packaging>
9
+ <name>naether</name>
10
+ <url>https://github.com/mguymon/naether</url>
11
+ <description>
12
12
  A Java Dependency Resolver using Maven’s Aether.
13
- </description>
13
+ </description>
14
14
  <licenses>
15
- <license>
16
- <name>The Apache Software License, Version 2.0</name>
17
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
18
- <distribution>repo</distribution>
19
- </license>
20
- </licenses>
21
- <scm>
22
- <url>scm:git:git@github.com/mguymon/naether.git</url>
15
+ <license>
16
+ <name>The Apache Software License, Version 2.0</name>
17
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
18
+ <distribution>repo</distribution>
19
+ </license>
20
+ </licenses>
21
+ <scm>
22
+ <url>scm:git:git@github.com/mguymon/naether.git</url>
23
23
  <developerConnection>scm:git:git@github.com/mguymon/naether.git</developerConnection>
24
- <connection>git@github.com/mguymon/naether.git</connection>
25
- </scm>
26
- <developers>
27
- <developer>
28
- <id>mguymon</id>
29
- <name>Michael Guymon</name>
30
- <email>michael.guymon@gmail.com</email>
31
- </developer>
32
- </developers>
33
- <distributionManagement>
34
- <repository>
35
- <id>nexus-releases</id>
36
- <name>Nexus Release Repository</name>
37
- <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
38
- </repository>
39
- </distributionManagement>
40
- <properties>
41
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24
+ <connection>git@github.com/mguymon/naether.git</connection>
25
+ </scm>
26
+ <developers>
27
+ <developer>
28
+ <id>mguymon</id>
29
+ <name>Michael Guymon</name>
30
+ <email>michael@tobedevoured.com</email>
31
+ </developer>
32
+ </developers>
33
+ <distributionManagement>
34
+ <repository>
35
+ <id>nexus-releases</id>
36
+ <name>Nexus Release Repository</name>
37
+ <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
38
+ </repository>
39
+ </distributionManagement>
40
+ <properties>
41
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42
42
  <aetherVersion>1.13</aetherVersion>
43
- <mavenVersion>3.0.3</mavenVersion>
44
- <wagonVersion>1.0</wagonVersion>
43
+ <mavenVersion>3.0.3</mavenVersion>
44
+ <wagonVersion>1.0</wagonVersion>
45
45
  <org.slf4j.version>1.6.2</org.slf4j.version>
46
46
  </properties>
47
- <dependencies>
48
- <dependency>
49
- <groupId>ch.qos.logback</groupId>
50
- <artifactId>logback-classic</artifactId>
51
- <version>0.9.29</version>
52
- </dependency>
53
- <dependency>
54
- <groupId>org.slf4j</groupId>
55
- <artifactId>slf4j-api</artifactId>
56
- <version>${org.slf4j.version}</version>
57
- </dependency>
58
- <dependency>
59
- <groupId>org.slf4j</groupId>
60
- <artifactId>jcl-over-slf4j</artifactId>
61
- <version>${org.slf4j.version}</version>
62
- </dependency>
63
- <dependency>
64
- <groupId>org.slf4j</groupId>
65
- <artifactId>log4j-over-slf4j</artifactId>
66
- <version>${org.slf4j.version}</version>
67
- </dependency>
68
- <dependency>
69
- <groupId>org.codehaus.plexus</groupId>
70
- <artifactId>plexus-utils</artifactId>
71
- <version>3.0</version>
72
- </dependency>
73
- <dependency>
74
- <groupId>org.apache.maven</groupId>
75
- <artifactId>maven-model-v3</artifactId>
76
- <version>2.0</version>
77
- </dependency>
78
- <dependency>
79
- <groupId>org.codehaus.plexus</groupId>
80
- <artifactId>plexus-container-default</artifactId>
81
- <version>1.5.5</version>
82
- </dependency>
83
- <dependency>
84
- <groupId>org.sonatype.aether</groupId>
85
- <artifactId>aether-api</artifactId>
86
- <version>${aetherVersion}</version>
87
- </dependency>
88
- <dependency>
89
- <groupId>org.sonatype.aether</groupId>
90
- <artifactId>aether-util</artifactId>
91
- <version>${aetherVersion}</version>
92
- </dependency>
93
- <dependency>
94
- <groupId>org.sonatype.aether</groupId>
95
- <artifactId>aether-impl</artifactId>
96
- <version>${aetherVersion}</version>
97
- </dependency>
98
- <dependency>
99
- <groupId>org.sonatype.aether</groupId>
100
- <artifactId>aether-connector-file</artifactId>
101
- <version>${aetherVersion}</version>
102
- </dependency>
103
- <dependency>
104
- <groupId>org.sonatype.aether</groupId>
105
- <artifactId>aether-connector-asynchttpclient</artifactId>
106
- <version>${aetherVersion}</version>
107
- </dependency>
108
- <dependency>
109
- <groupId>org.sonatype.aether</groupId>
110
- <artifactId>aether-connector-wagon</artifactId>
111
- <version>${aetherVersion}</version>
112
- </dependency>
113
- <dependency>
114
- <groupId>org.apache.maven</groupId>
115
- <artifactId>maven-aether-provider</artifactId>
116
- <version>${mavenVersion}</version>
117
- </dependency>
118
- <dependency>
119
- <groupId>org.apache.maven.wagon</groupId>
120
- <artifactId>wagon-ssh</artifactId>
121
- <version>${wagonVersion}</version>
122
- </dependency>
123
- <dependency>
124
- <groupId>org.apache.maven.wagon</groupId>
125
- <artifactId>wagon-http-lightweight</artifactId>
126
- <version>${wagonVersion}</version>
127
- </dependency>
128
- <dependency>
129
- <groupId>org.apache.maven.wagon</groupId>
130
- <artifactId>wagon-file</artifactId>
131
- <version>${wagonVersion}</version>
132
- </dependency>
133
-
134
- <!-- Test Scope -->
135
- <dependency>
136
- <groupId>junit</groupId>
137
- <artifactId>junit</artifactId>
138
- <version>4.8.2</version>
139
- <scope>test</scope>
140
- </dependency>
141
- </dependencies>
142
-
143
- <build>
47
+ <dependencies>
48
+ <dependency>
49
+ <groupId>ch.qos.logback</groupId>
50
+ <artifactId>logback-classic</artifactId>
51
+ <version>0.9.29</version>
52
+ </dependency>
53
+ <dependency>
54
+ <groupId>org.slf4j</groupId>
55
+ <artifactId>slf4j-api</artifactId>
56
+ <version>${org.slf4j.version}</version>
57
+ </dependency>
58
+ <dependency>
59
+ <groupId>org.slf4j</groupId>
60
+ <artifactId>jcl-over-slf4j</artifactId>
61
+ <version>${org.slf4j.version}</version>
62
+ </dependency>
63
+ <dependency>
64
+ <groupId>org.slf4j</groupId>
65
+ <artifactId>log4j-over-slf4j</artifactId>
66
+ <version>${org.slf4j.version}</version>
67
+ </dependency>
68
+ <dependency>
69
+ <groupId>org.codehaus.plexus</groupId>
70
+ <artifactId>plexus-utils</artifactId>
71
+ <version>3.0</version>
72
+ </dependency>
73
+ <dependency>
74
+ <groupId>org.apache.maven</groupId>
75
+ <artifactId>maven-model-v3</artifactId>
76
+ <version>2.0</version>
77
+ </dependency>
78
+ <dependency>
79
+ <groupId>org.codehaus.plexus</groupId>
80
+ <artifactId>plexus-container-default</artifactId>
81
+ <version>1.5.5</version>
82
+ </dependency>
83
+ <dependency>
84
+ <groupId>org.sonatype.aether</groupId>
85
+ <artifactId>aether-api</artifactId>
86
+ <version>${aetherVersion}</version>
87
+ </dependency>
88
+ <dependency>
89
+ <groupId>org.sonatype.aether</groupId>
90
+ <artifactId>aether-util</artifactId>
91
+ <version>${aetherVersion}</version>
92
+ </dependency>
93
+ <dependency>
94
+ <groupId>org.sonatype.aether</groupId>
95
+ <artifactId>aether-impl</artifactId>
96
+ <version>${aetherVersion}</version>
97
+ </dependency>
98
+ <dependency>
99
+ <groupId>org.sonatype.aether</groupId>
100
+ <artifactId>aether-connector-file</artifactId>
101
+ <version>${aetherVersion}</version>
102
+ </dependency>
103
+ <dependency>
104
+ <groupId>org.sonatype.aether</groupId>
105
+ <artifactId>aether-connector-asynchttpclient</artifactId>
106
+ <version>${aetherVersion}</version>
107
+ </dependency>
108
+ <dependency>
109
+ <groupId>org.sonatype.aether</groupId>
110
+ <artifactId>aether-connector-wagon</artifactId>
111
+ <version>${aetherVersion}</version>
112
+ </dependency>
113
+ <dependency>
114
+ <groupId>org.apache.maven</groupId>
115
+ <artifactId>maven-aether-provider</artifactId>
116
+ <version>${mavenVersion}</version>
117
+ </dependency>
118
+ <dependency>
119
+ <groupId>org.apache.maven.wagon</groupId>
120
+ <artifactId>wagon-ssh</artifactId>
121
+ <version>${wagonVersion}</version>
122
+ </dependency>
123
+ <dependency>
124
+ <groupId>org.apache.maven.wagon</groupId>
125
+ <artifactId>wagon-http-lightweight</artifactId>
126
+ <version>${wagonVersion}</version>
127
+ </dependency>
128
+ <dependency>
129
+ <groupId>org.apache.maven.wagon</groupId>
130
+ <artifactId>wagon-file</artifactId>
131
+ <version>${wagonVersion}</version>
132
+ </dependency>
133
+
134
+ <!-- Test Scope -->
135
+ <dependency>
136
+ <groupId>junit</groupId>
137
+ <artifactId>junit</artifactId>
138
+ <version>4.8.2</version>
139
+ <scope>test</scope>
140
+ </dependency>
141
+ </dependencies>
142
+
143
+ <build>
144
+ <plugins>
145
+ <plugin>
146
+ <groupId>org.apache.maven.plugins</groupId>
147
+ <artifactId>maven-dependency-plugin</artifactId>
148
+ <executions>
149
+ <execution>
150
+ <id>copy-dependencies</id>
151
+ <phase>package</phase>
152
+ <goals>
153
+ <goal>copy-dependencies</goal>
154
+ </goals>
155
+ <configuration>
156
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
157
+ <overWriteReleases>false</overWriteReleases>
158
+ <overWriteSnapshots>false</overWriteSnapshots>
159
+ <overWriteIfNewer>true</overWriteIfNewer>
160
+ </configuration>
161
+ </execution>
162
+ </executions>
163
+ </plugin>
164
+ <plugin>
165
+ <groupId>org.apache.maven.plugins</groupId>
166
+ <artifactId>maven-source-plugin</artifactId>
167
+ <executions>
168
+ <execution>
169
+ <id>attach-sources</id>
170
+ <goals>
171
+ <goal>jar</goal>
172
+ </goals>
173
+ </execution>
174
+ </executions>
175
+ </plugin>
176
+ <plugin>
177
+ <groupId>org.apache.maven.plugins</groupId>
178
+ <artifactId>maven-javadoc-plugin</artifactId>
179
+ <executions>
180
+ <execution>
181
+ <id>attach-javadocs</id>
182
+ <goals>
183
+ <goal>jar</goal>
184
+ </goals>
185
+ </execution>
186
+ </executions>
187
+ </plugin>
188
+ <plugin>
189
+ <groupId>org.apache.maven.plugins</groupId>
190
+ <artifactId>maven-gpg-plugin</artifactId>
191
+ <executions>
192
+ <execution>
193
+ <id>sign-artifacts</id>
194
+ <phase>verify</phase>
195
+ <goals>
196
+ <goal>sign</goal>
197
+ </goals>
198
+ </execution>
199
+ </executions>
200
+ </plugin>
201
+ </plugins>
202
+ </build>
203
+
204
+ <reporting>
144
205
  <plugins>
145
- <plugin>
146
- <groupId>org.apache.maven.plugins</groupId>
147
- <artifactId>maven-dependency-plugin</artifactId>
148
- <executions>
149
- <execution>
150
- <id>copy-dependencies</id>
151
- <phase>package</phase>
152
- <goals>
153
- <goal>copy-dependencies</goal>
154
- </goals>
155
- <configuration>
156
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
157
- <overWriteReleases>false</overWriteReleases>
158
- <overWriteSnapshots>false</overWriteSnapshots>
159
- <overWriteIfNewer>true</overWriteIfNewer>
160
- </configuration>
161
- </execution>
162
- </executions>
163
- </plugin>
164
- <plugin>
165
- <groupId>org.apache.maven.plugins</groupId>
166
- <artifactId>maven-source-plugin</artifactId>
167
- <executions>
168
- <execution>
169
- <id>attach-sources</id>
170
- <goals>
171
- <goal>jar</goal>
172
- </goals>
173
- </execution>
174
- </executions>
175
- </plugin>
176
- <plugin>
177
- <groupId>org.apache.maven.plugins</groupId>
178
- <artifactId>maven-javadoc-plugin</artifactId>
179
- <executions>
180
- <execution>
181
- <id>attach-javadocs</id>
182
- <goals>
183
- <goal>jar</goal>
184
- </goals>
185
- </execution>
186
- </executions>
187
- </plugin>
188
206
  <plugin>
189
- <groupId>org.apache.maven.plugins</groupId>
190
- <artifactId>maven-gpg-plugin</artifactId>
191
- <executions>
192
- <execution>
193
- <id>sign-artifacts</id>
194
- <phase>verify</phase>
195
- <goals>
196
- <goal>sign</goal>
197
- </goals>
198
- </execution>
199
- </executions>
200
- </plugin>
207
+ <groupId>org.apache.maven.plugins</groupId>
208
+ <artifactId>maven-surefire-report-plugin</artifactId>
209
+ <version>2.7.2</version>
210
+ </plugin>
201
211
  </plugins>
202
- </build>
203
-
204
- <reporting>
205
- <plugins>
206
- <plugin>
207
- <groupId>org.apache.maven.plugins</groupId>
208
- <artifactId>maven-surefire-report-plugin</artifactId>
209
- <version>2.7.2</version>
210
- </plugin>
211
- </plugins>
212
- </reporting>
212
+ </reporting>
213
213
 
214
214
  </project>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,7 +90,7 @@ files:
90
90
  - lib/naether.rb
91
91
  - lib/naether/bootstrap.rb
92
92
  - lib/naether/java.rb
93
- - naether-0.8.2.jar
93
+ - naether-0.8.3.jar
94
94
  - pom.xml
95
95
  homepage: http://github.com/mguymon/naether
96
96
  licenses:
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  segments:
109
109
  - 0
110
- hash: -1732258374247833448
110
+ hash: -4418693374061285972
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  none: false
113
113
  requirements:
data/naether-0.8.2.jar DELETED
Binary file