ivy4r 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/buildr/ivy_extension.rb +20 -7
- data/lib/ivy4r.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/buildr/ivy_extension.rb
CHANGED
@@ -470,7 +470,7 @@ For more configuration options see IvyConfig.
|
|
470
470
|
excludes = project.ivy.compile_exclude
|
471
471
|
confs = [project.ivy.compile_conf].flatten
|
472
472
|
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
473
|
-
project.compile.with [project.compile.dependencies
|
473
|
+
project.compile.with [deps, project.compile.dependencies].flatten
|
474
474
|
info "Ivy adding compile dependencies '#{confs.join(', ')}' to project '#{project.name}'"
|
475
475
|
end
|
476
476
|
end
|
@@ -482,7 +482,7 @@ For more configuration options see IvyConfig.
|
|
482
482
|
excludes = project.ivy.test_exclude
|
483
483
|
confs = [project.ivy.test_conf, project.ivy.compile_conf].flatten.uniq
|
484
484
|
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
485
|
-
project.test.with [project.test.dependencies
|
485
|
+
project.test.with [deps, project.test.dependencies].flatten
|
486
486
|
info "Ivy adding test dependencies '#{confs.join(', ')}' to project '#{project.name}'"
|
487
487
|
end
|
488
488
|
end
|
@@ -515,16 +515,29 @@ For more configuration options see IvyConfig.
|
|
515
515
|
end
|
516
516
|
|
517
517
|
def add_prod_libs_to_distributeables(project)
|
518
|
-
pkgs = project.packages.find_all { |pkg| [:war
|
518
|
+
pkgs = project.packages.find_all { |pkg| [:war].member? pkg.type }
|
519
519
|
pkgs.each do |pkg|
|
520
|
-
|
521
|
-
|
520
|
+
task = project.task "#{pkg.name}deps" => project.ivy.file_project.task('ivy:resolve') do
|
521
|
+
includes = project.ivy.package_include
|
522
|
+
excludes = project.ivy.package_exclude
|
523
|
+
confs = project.ivy.package_conf
|
524
|
+
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
525
|
+
pkg.with :libs => [deps, pkg.libs].flatten
|
526
|
+
info "Adding production libs from conf '#{confs.join(', ')}' to WAR '#{pkg.name}' in project '#{project.name}'"
|
527
|
+
end
|
528
|
+
end
|
529
|
+
project.task :build => task
|
530
|
+
end
|
531
|
+
|
532
|
+
pkgs = project.packages.find_all { |pkg| [:ear].member? pkg.type }
|
533
|
+
pkgs.each do |pkg|
|
534
|
+
task = project.task "#{pkg.name}deps" => project.ivy.file_project.task('ivy:resolve') do
|
522
535
|
includes = project.ivy.package_include
|
523
536
|
excludes = project.ivy.package_exclude
|
524
537
|
confs = project.ivy.package_conf
|
525
538
|
if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
|
526
|
-
pkg.
|
527
|
-
info "Adding production libs from conf '#{confs.join(', ')}' to
|
539
|
+
pkg.add deps, :type => :lib, :path => ''
|
540
|
+
info "Adding production libs from conf '#{confs.join(', ')}' to EAR '#{pkg.name}' in project '#{project.name}'"
|
528
541
|
end
|
529
542
|
end
|
530
543
|
project.task :build => task
|
data/lib/ivy4r.rb
CHANGED
metadata
CHANGED
@@ -89,14 +89,14 @@ requirements: []
|
|
89
89
|
|
90
90
|
authors:
|
91
91
|
- Klaas Prause
|
92
|
-
date: 2009-
|
92
|
+
date: 2009-09-07 22:00:00 +00:00
|
93
93
|
platform: ruby
|
94
94
|
test_files:
|
95
95
|
- test/test_ivy4r.rb
|
96
96
|
- test/ivy/test_target.rb
|
97
97
|
- test/ivy/test_targets.rb
|
98
98
|
version: !ruby/object:Gem::Version
|
99
|
-
version: 0.7.
|
99
|
+
version: 0.7.2
|
100
100
|
require_paths:
|
101
101
|
- lib
|
102
102
|
dependencies:
|