naether 0.3.0-java → 0.3.1-java

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/jar_dependencies.yml CHANGED
@@ -1,35 +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.codehaus.plexus:plexus-utils:jar:1.5.8
31
- - org.codehaus.plexus:plexus-container-default:jar:1.5.5
32
- - org.codehaus.plexus:plexus-classworlds:jar:2.2.2
33
- - org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
34
- - org.codehaus.plexus:plexus-interpolation:jar:1.14
35
- - 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
@@ -106,4 +106,26 @@ class Naether
106
106
  @resolver.resolveDependencies( download_artifacts );
107
107
  dependencies
108
108
  end
109
+
110
+ def deploy_artifact( notation, file_path, url, opts = {} )
111
+ if Naether.platform == 'java'
112
+ @instance = com.slackworks.naether.DeployArtifact.new
113
+ else
114
+ deployArtifactClass = Rjb::import('com.slackworks.naether.DeployArtifact')
115
+ @instance = deployArtifactClass.new
116
+ end
117
+
118
+ @instance.setRemoteRepo( url )
119
+ @instance.setNotation( notation )
120
+ @instance.setFilePath( file_path )
121
+ if opts[:pom_path]
122
+ @instance.setPomPath( pom_path )
123
+ end
124
+
125
+ if opts[:user_name] || opts[:pub_key]
126
+ @instance.setAuth(opts[:user_name], opts[:password], opts[:pub_key], opts[:pub_key_passphrase] )
127
+ end
128
+
129
+ @resolver.deployArtifact(@instance)
130
+ end
109
131
  end
data/naether-0.2.1.jar CHANGED
Binary file
data/pom.xml CHANGED
@@ -98,6 +98,12 @@
98
98
  <artifactId>wagon-http-lightweight</artifactId>
99
99
  <version>${wagonVersion}</version>
100
100
  </dependency>
101
+ <dependency>
102
+ <groupId>org.apache.maven.wagon</groupId>
103
+ <artifactId>wagon-file</artifactId>
104
+ <version>${wagonVersion}</version>
105
+ </dependency>
106
+
101
107
 
102
108
  <!-- exclude commons logging -->
103
109
  <dependency>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
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-03 00:00:00 -05:00
13
+ date: 2011-03-07 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency