Bug in IdeaProject.partition_dependencies resulted in projects being rebuilt if artifacts were added to the project with dependencies on the current project.

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1532568 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGELOG b/CHANGELOG
index d3bb9d9..8fe2a97 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,7 @@
 1.4.15 (Pending)
+* Fixed:  Bug in IdeaProject.partition_dependencies resulted in
+          projects being rebuilt if artifacts were added to the
+          project with dependencies on the current project.
 * Fixed:  BUILDR-605 - Ensure package task invokes included paths.
 * Fixed:  BUILDR-609 - compile.from should accept Task argument.
 
diff --git a/lib/buildr/ide/idea.rb b/lib/buildr/ide/idea.rb
index 1466f7a..cade709 100644
--- a/lib/buildr/ide/idea.rb
+++ b/lib/buildr/ide/idea.rb
@@ -1013,7 +1013,7 @@
         dependencies.each do |dependency|
           artifacts = Buildr.artifacts(dependency)
           artifacts_as_strings = artifacts.map(&:to_s)
-          all_projects = Buildr::Project.instance_variable_get("@projects").keys - [buildr_project.name]
+          all_projects = Buildr::Project.instance_variable_get("@projects").keys
           project = Buildr.projects(all_projects).detect do |project|
             [project.packages, project.compile.target, project.resources.target, project.test.compile.target, project.test.resources.target].flatten.
               detect { |component| artifacts_as_strings.include?(component.to_s) }