ivy4r 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Rakefile +2 -3
- data/lib/buildr/ivy_extension.rb +20 -0
- data/lib/ivy/makepom.rb +30 -23
- data/lib/ivy4r.rb +1 -1
- metadata +6 -6
data/History.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 0.12.0 / 2010-10-12
|
2
|
+
* Use new version of ivy4r-jars. The new version is based on the last release of Ivy 2.2.0 with better support for POMs and a few bugfixes.
|
3
|
+
* Added global and per project Buildr task ivy:makepom. It generates a simple Maven POM file in target folder of project with the same name as project and pom file extension. Right now no additional features of the makepom target are supported by using this task. If you need to use the nested elements use the the makepom target directly. I.e.: ivy.ivy4r.makepom :ivyfile => 'pathtofile' [, ...] [, :nested => [:mapping => [:conf => 'conf', :scope => 'scope']], [...] ] I am planning to provide a makepom task with descent support for the makepom target after figuring out a nice syntax for it.
|
4
|
+
|
1
5
|
=== 0.11.1 / 2010-06-09
|
2
6
|
* Fixed a bug reported by Rhett Sutphin that prevented the use of MRI.
|
3
7
|
* Added mapping from java to ruby via RJB and source example from
|
data/Rakefile
CHANGED
@@ -6,11 +6,10 @@ require 'hoe'
|
|
6
6
|
require 'ivy4r'
|
7
7
|
|
8
8
|
hoe = Hoe.spec 'ivy4r' do |p|
|
9
|
-
|
10
|
-
p.developer('Klaas Prause', 'klaas.prause@googlemail.com')
|
9
|
+
p.developer('Klaas Reineke', 'klaas.reineke@googlemail.com')
|
11
10
|
p.remote_rdoc_dir = 'ivy4r'
|
12
11
|
p.extra_deps << ['Antwrap', '>=0.7.0']
|
13
|
-
p.extra_deps << ['ivy4r-jars', '>=1.
|
12
|
+
p.extra_deps << ['ivy4r-jars', '>=1.2.0']
|
14
13
|
p.extra_deps << ['facets', '>=2.5.2']
|
15
14
|
#p.extra_deps << ['thoughtbot-shoulda', '>=2.5.2']
|
16
15
|
#p.extra_deps << ['rr', '>=0.10.0']
|
data/lib/buildr/ivy_extension.rb
CHANGED
@@ -187,6 +187,12 @@ module Buildr
|
|
187
187
|
def cleancache
|
188
188
|
ivy4r.cleancache
|
189
189
|
end
|
190
|
+
|
191
|
+
# Simple call to makepom with projects ivy.xml as input.
|
192
|
+
# The filename in target folder can be changed with the optional filename parameter
|
193
|
+
def makepom(filename = project.name.gsub(':', '_', + '.pom')
|
194
|
+
ivy4r.makepom :ivyfile => file, :pomfile => project.path_to(:target, filename)
|
195
|
+
end
|
190
196
|
|
191
197
|
|
192
198
|
# Publishs the project as defined in ivy file if it has not been published already
|
@@ -676,6 +682,9 @@ module IvyExtension
|
|
676
682
|
|
677
683
|
desc 'Clean the local Ivy cache and the local ivy repository'
|
678
684
|
task :clean
|
685
|
+
|
686
|
+
desc 'Creates default Maven POM for project from ivy.xml'
|
687
|
+
task :makepom
|
679
688
|
|
680
689
|
desc 'Clean the local Ivy result cache to force execution of ivy targets'
|
681
690
|
task :clean_result_cache
|
@@ -732,6 +741,10 @@ module IvyExtension
|
|
732
741
|
task :publish => "#{project.name}:ivy:resolve" do
|
733
742
|
project.ivy.__publish__
|
734
743
|
end
|
744
|
+
|
745
|
+
task :makepom => "#{project.name}:ivy:resolve" do
|
746
|
+
project.ivy.makepom
|
747
|
+
end
|
735
748
|
end
|
736
749
|
end
|
737
750
|
end
|
@@ -776,6 +789,13 @@ namespace 'ivy' do
|
|
776
789
|
project.task('ivy:publish').invoke
|
777
790
|
end
|
778
791
|
end
|
792
|
+
|
793
|
+
task :makepom => :resolve do
|
794
|
+
info "Create Maven POMs for all projects with distinct ivy files"
|
795
|
+
Buildr.projects.find_all{ |p| p.ivy.own_file? }.each do |project|
|
796
|
+
project.task('ivy:makepom').invoke
|
797
|
+
end
|
798
|
+
end
|
779
799
|
end
|
780
800
|
|
781
801
|
class Buildr::Project # :nodoc:
|
data/lib/ivy/makepom.rb
CHANGED
@@ -1,23 +1,30 @@
|
|
1
|
-
require 'ivy/target'
|
2
|
-
|
3
|
-
module Ivy
|
4
|
-
class Makepom < Ivy::Target
|
5
|
-
def parameter
|
6
|
-
[
|
7
|
-
Parameter.new(:ivyfile, true),
|
8
|
-
Parameter.new(:pomfile, true),
|
9
|
-
Parameter.new(:
|
10
|
-
Parameter.new(:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
1
|
+
require 'ivy/target'
|
2
|
+
|
3
|
+
module Ivy
|
4
|
+
class Makepom < Ivy::Target
|
5
|
+
def parameter
|
6
|
+
[
|
7
|
+
Parameter.new(:ivyfile, true),
|
8
|
+
Parameter.new(:pomfile, true),
|
9
|
+
Parameter.new(:templatefile, false),
|
10
|
+
Parameter.new(:artifactName, false),
|
11
|
+
Parameter.new(:artifactPackaging, false),
|
12
|
+
Parameter.new(:conf, false),
|
13
|
+
Parameter.new(:settingsRef, false),
|
14
|
+
Parameter.new(:printIvyInfo, false),
|
15
|
+
Parameter.new(:headerFile, false),
|
16
|
+
Parameter.new(:description, false),
|
17
|
+
Parameter.new(:nested, false)
|
18
|
+
]
|
19
|
+
end
|
20
|
+
|
21
|
+
protected
|
22
|
+
def execute_ivy
|
23
|
+
call_nested :ivy_makepom => params
|
24
|
+
end
|
25
|
+
|
26
|
+
def create_return_values
|
27
|
+
IO.read(params[:pomfile])
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/ivy4r.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ivy4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Klaas
|
7
|
+
- Klaas Reineke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-10-12 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2.0
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: facets
|
@@ -70,7 +70,7 @@ description: |-
|
|
70
70
|
Includes a Extension for Buildr[http://buildr.apache.org/] and Rake[http://rake.rubyforge.org] to use
|
71
71
|
{Apache Ivy}[http://ant.apache.org/ivy/index.html] for dependency management.
|
72
72
|
email:
|
73
|
-
- klaas.
|
73
|
+
- klaas.reineke@googlemail.com
|
74
74
|
executables:
|
75
75
|
- ivy4r
|
76
76
|
extensions: []
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version:
|
145
145
|
requirements: []
|
146
146
|
|
147
|
-
rubyforge_project:
|
147
|
+
rubyforge_project: ivy4r
|
148
148
|
rubygems_version: 1.3.5
|
149
149
|
signing_key:
|
150
150
|
specification_version: 3
|