buildr-resolver 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/buildr-resolver.gemspec +5 -5
- data/lib/buildr/override/packaging/artifact.rb +2 -2
- data/lib/buildr/resolver.rb +12 -3
- metadata +8 -8
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/buildr-resolver.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{buildr-resolver}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Guymon"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-13}
|
13
13
|
s.description = %q{Java dependency resolver for Buildr using Maven's Aether}
|
14
14
|
s.email = %q{michael.guymon@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -47,18 +47,18 @@ Gem::Specification.new do |s|
|
|
47
47
|
s.specification_version = 3
|
48
48
|
|
49
49
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
-
s.add_runtime_dependency(%q<naether>, ["= 0.
|
50
|
+
s.add_runtime_dependency(%q<naether>, ["= 0.4.0"])
|
51
51
|
s.add_runtime_dependency(%q<buildr>, ["= 1.4.5"])
|
52
52
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
53
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
54
54
|
else
|
55
|
-
s.add_dependency(%q<naether>, ["= 0.
|
55
|
+
s.add_dependency(%q<naether>, ["= 0.4.0"])
|
56
56
|
s.add_dependency(%q<buildr>, ["= 1.4.5"])
|
57
57
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
58
58
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
59
59
|
end
|
60
60
|
else
|
61
|
-
s.add_dependency(%q<naether>, ["= 0.
|
61
|
+
s.add_dependency(%q<naether>, ["= 0.4.0"])
|
62
62
|
s.add_dependency(%q<buildr>, ["= 1.4.5"])
|
63
63
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
64
64
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
@@ -72,7 +72,7 @@ module Buildr
|
|
72
72
|
snapshot_url = current_snapshot_repo_url(repo)
|
73
73
|
if snapshot_url
|
74
74
|
begin
|
75
|
-
download_artifact snapshot_url
|
75
|
+
download_artifact snapshot_url, repo
|
76
76
|
true
|
77
77
|
rescue URI::NotFoundError
|
78
78
|
false
|
@@ -87,7 +87,7 @@ module Buildr
|
|
87
87
|
begin
|
88
88
|
metadata_path = "#{group_path}/#{id}/#{version}/maven-metadata.xml"
|
89
89
|
metadata_xml = StringIO.new
|
90
|
-
URI.download repo[:url] + metadata_path, metadata_xml
|
90
|
+
URI.download repo[:url] + metadata_path, metadata_xml, repo
|
91
91
|
metadata = REXML::Document.new(metadata_xml.string).root
|
92
92
|
timestamp = REXML::XPath.first(metadata, '//timestamp')
|
93
93
|
build_number = REXML::XPath.first(metadata, '//buildNumber')
|
data/lib/buildr/resolver.rb
CHANGED
@@ -67,6 +67,18 @@ module Buildr
|
|
67
67
|
naether.dependenciesNotation
|
68
68
|
end
|
69
69
|
|
70
|
+
def deps_from_pom( pom_path )
|
71
|
+
naether.pom_dependencies( pom_path )
|
72
|
+
end
|
73
|
+
|
74
|
+
def pom_version( pom_path )
|
75
|
+
naether.pom_version( pom_path )
|
76
|
+
end
|
77
|
+
|
78
|
+
def write_pom( notation, file_path )
|
79
|
+
naether.write_pom( notation, file_path )
|
80
|
+
end
|
81
|
+
|
70
82
|
def deploy_artifact( notation, file_path, url, opts = {} )
|
71
83
|
naether.deploy_artifact( notation, file_path, url, opts )
|
72
84
|
end
|
@@ -75,9 +87,6 @@ module Buildr
|
|
75
87
|
naether.install_artifact( notation, file_path, opts )
|
76
88
|
end
|
77
89
|
|
78
|
-
def write_pom( notation, file_path )
|
79
|
-
naether.write_pom( notation, file_path )
|
80
|
-
end
|
81
90
|
end
|
82
91
|
end
|
83
92
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr-resolver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Guymon
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-13 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - "="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 15
|
30
30
|
segments:
|
31
31
|
- 0
|
32
|
-
- 3
|
33
32
|
- 4
|
34
|
-
|
33
|
+
- 0
|
34
|
+
version: 0.4.0
|
35
35
|
requirement: *id001
|
36
36
|
type: :runtime
|
37
37
|
- !ruby/object:Gem::Dependency
|