lib/buildr/ivy_extension.rb in ivy4r-0.5.3 vs lib/buildr/ivy_extension.rb in ivy4r-0.6.0

- old
+ new

@@ -400,10 +400,11 @@ project.task :compiledeps => resolve_target do compile_conf = [project.ivy.compile_conf].flatten project.compile.with project.ivy.deps(compile_conf) info "Ivy adding compile dependencies '#{compile_conf.join(', ')}' to project '#{project.name}'" end + project.task :compile => "#{project.name}:compiledeps" project.task :testdeps => resolve_target do confs = [project.ivy.test_conf, project.ivy.compile_conf].flatten.uniq project.test.with project.ivy.deps(confs) @@ -415,9 +416,13 @@ confs = [project.ivy.test_conf, project.ivy.compile_conf].flatten.uniq project.javadoc.with project.ivy.deps(confs) info "Ivy adding javadoc dependencies '#{confs.join(', ')}' to project '#{project.name}'" end project.task :javadoc => "#{project.name}:javadocdeps" + + [project.task(:eclipse), project.task(:idea), project.task(:idea7x)].each do |task| + task.prerequisites.each{|p| p.enhance ["#{project.name}:compiledeps", "#{project.name}:testdeps"]} + end end def add_manifest_to_distributeables(project) pkgs = project.packages.find_all { |pkg| [:jar, :war, :ear].member? pkg.type } pkgs.each do |pkg|