klaas1979-ivy4r 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/lib/buildr/ivy_extension.rb +16 -11
- data/lib/ivy4r.rb +1 -1
- data/lib/rake/ivy_extension.rb +4 -4
- metadata +4 -3
data/History.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
=== 0.7.1 / 2009-08-24
|
2
|
+
|
3
|
+
* Fix bug that manual added dependencies are overwritten for package task
|
4
|
+
issue 1: http://github.com/klaas1979/ivy4r/issues#issue/1
|
5
|
+
* possible to add manual dependencies for compile and test as for package
|
6
|
+
|
1
7
|
=== 0.7.0 / 2009-07-20
|
2
8
|
|
3
9
|
* It is possible to register +post_resolve+ actions via blocks:
|
data/lib/buildr/ivy_extension.rb
CHANGED
@@ -115,9 +115,9 @@ module Buildr
|
|
115
115
|
end
|
116
116
|
|
117
117
|
# Resolves the configured file once.
|
118
|
-
def
|
118
|
+
def __resolve__
|
119
119
|
if @base_ivy
|
120
|
-
@base_ivy.
|
120
|
+
@base_ivy.__resolve__
|
121
121
|
else
|
122
122
|
unless @resolved
|
123
123
|
@resolved = ant.resolve :file => file
|
@@ -146,9 +146,9 @@ module Buildr
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# Publishs the project as defined in ivy file if it has not been published already
|
149
|
-
def
|
149
|
+
def __publish__
|
150
150
|
if @base_ivy
|
151
|
-
@base_ivy.
|
151
|
+
@base_ivy.__publish__
|
152
152
|
else
|
153
153
|
unless @published
|
154
154
|
options = {:status => status, :pubrevision => revision, :artifactspattern => "#{publish_from}/[artifact].[ext]"}
|
@@ -280,6 +280,10 @@ module Buildr
|
|
280
280
|
end
|
281
281
|
end
|
282
282
|
|
283
|
+
# :call-seq:
|
284
|
+
# ivy.publish(package(:jar) => 'new_name_without_version_number.jar')
|
285
|
+
# #deprecated! ivy.name(package(:jar) => 'new_name_without_version_number.jar')
|
286
|
+
#
|
283
287
|
# Maps a package to a different name for publishing. This name is used instead of the default name
|
284
288
|
# for publishing use a hash with the +package+ as key and the newly mapped name as value. I.e.
|
285
289
|
# <tt>ivy.name(package(:jar) => 'new_name_without_version_number.jar')</tt>
|
@@ -293,6 +297,7 @@ module Buildr
|
|
293
297
|
self
|
294
298
|
end
|
295
299
|
end
|
300
|
+
alias_method :publish, :name
|
296
301
|
|
297
302
|
# Sets the directory to publish artifacts from.
|
298
303
|
def publish_from(*publish_dir)
|
@@ -395,12 +400,12 @@ module Buildr
|
|
395
400
|
|
396
401
|
private
|
397
402
|
def target(targets)
|
398
|
-
t = targets.to_s.split('_').find { |
|
403
|
+
t = targets.to_s.split('_').find { |target| TARGETS.member? target.to_sym }
|
399
404
|
t ? t.to_sym : nil
|
400
405
|
end
|
401
406
|
|
402
407
|
def type(types)
|
403
|
-
t = types.to_s.split('_').find { |
|
408
|
+
t = types.to_s.split('_').find { |type| TYPES.member? type.to_sym }
|
404
409
|
t ? t.to_sym : nil
|
405
410
|
end
|
406
411
|
|
@@ -465,7 +470,7 @@ For more configuration options see IvyConfig.
|
|
465
470
|
excludes = project.ivy.compile_exclude
|
466
471
|
confs = [project.ivy.compile_conf].flatten
|
467
472
|
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
468
|
-
project.compile.with deps
|
473
|
+
project.compile.with [project.compile.dependencies, deps].flatten
|
469
474
|
info "Ivy adding compile dependencies '#{confs.join(', ')}' to project '#{project.name}'"
|
470
475
|
end
|
471
476
|
end
|
@@ -477,7 +482,7 @@ For more configuration options see IvyConfig.
|
|
477
482
|
excludes = project.ivy.test_exclude
|
478
483
|
confs = [project.ivy.test_conf, project.ivy.compile_conf].flatten.uniq
|
479
484
|
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
480
|
-
project.test.with deps
|
485
|
+
project.test.with [project.test.dependencies, deps].flatten
|
481
486
|
info "Ivy adding test dependencies '#{confs.join(', ')}' to project '#{project.name}'"
|
482
487
|
end
|
483
488
|
end
|
@@ -518,7 +523,7 @@ For more configuration options see IvyConfig.
|
|
518
523
|
excludes = project.ivy.package_exclude
|
519
524
|
confs = project.ivy.package_conf
|
520
525
|
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
521
|
-
pkg.with :libs => deps
|
526
|
+
pkg.with :libs => [pkg.libs, deps].flatten
|
522
527
|
info "Adding production libs from conf '#{confs.join(', ')}' to package '#{pkg.name}' in project '#{project.name}'"
|
523
528
|
end
|
524
529
|
end
|
@@ -595,7 +600,7 @@ For more configuration options see IvyConfig.
|
|
595
600
|
end
|
596
601
|
|
597
602
|
task :resolve => "#{project.name}:ivy:configure" do
|
598
|
-
project.ivy.
|
603
|
+
project.ivy.__resolve__
|
599
604
|
end
|
600
605
|
|
601
606
|
task :report => "#{project.name}:ivy:resolve" do
|
@@ -603,7 +608,7 @@ For more configuration options see IvyConfig.
|
|
603
608
|
end
|
604
609
|
|
605
610
|
task :publish => "#{project.name}:ivy:resolve" do
|
606
|
-
project.ivy.
|
611
|
+
project.ivy.__publish__
|
607
612
|
end
|
608
613
|
end
|
609
614
|
end
|
data/lib/ivy4r.rb
CHANGED
data/lib/rake/ivy_extension.rb
CHANGED
@@ -57,7 +57,7 @@ module Rake
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# Resolves the configured file once.
|
60
|
-
def
|
60
|
+
def __resolve__
|
61
61
|
unless @resolved
|
62
62
|
@resolved = ant.resolve :file => file
|
63
63
|
end
|
@@ -69,7 +69,7 @@ module Rake
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# Publishs the project as defined in ivy file if it has not been published already
|
72
|
-
def
|
72
|
+
def __publish__
|
73
73
|
unless @published
|
74
74
|
options = {:artifactspattern => "#{publish_from}/[artifact].[ext]"}
|
75
75
|
options[:pubrevision] = revision if revision
|
@@ -233,12 +233,12 @@ module Rake
|
|
233
233
|
|
234
234
|
desc 'Resolves the ivy dependencies'
|
235
235
|
task :resolve => "ivy:configure" do
|
236
|
-
Rake.application.ivy.
|
236
|
+
Rake.application.ivy.__resolve__
|
237
237
|
end
|
238
238
|
|
239
239
|
desc 'Publish the artifacts to ivy repository'
|
240
240
|
task :publish => "ivy:resolve" do
|
241
|
-
Rake.application.ivy.
|
241
|
+
Rake.application.ivy.__publish__
|
242
242
|
end
|
243
243
|
|
244
244
|
desc 'Creates a dependency report for the project'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: klaas1979-ivy4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Klaas Prause
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-24 00:00:00 -07:00
|
13
13
|
default_executable: ivy4r
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- test/test_ivy4r.rb
|
104
104
|
has_rdoc: false
|
105
105
|
homepage: http://github.com/klaas1979/ivy4r/tree/master
|
106
|
+
licenses:
|
106
107
|
post_install_message:
|
107
108
|
rdoc_options:
|
108
109
|
- --main
|
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
requirements: []
|
126
127
|
|
127
128
|
rubyforge_project: hamburgrb
|
128
|
-
rubygems_version: 1.
|
129
|
+
rubygems_version: 1.3.5
|
129
130
|
signing_key:
|
130
131
|
specification_version: 3
|
131
132
|
summary: Apache Ivy dependency manager wrapper for ruby (see {Apache Ivy}[http://ant.apache.org/ivy/index.html] for more information)
|