You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2015/11/05 21:36:17 UTC

[40/50] [abbrv] incubator-geode git commit: GEODE-522: Exclude only gradle output dirs from eclipse/idea project

GEODE-522: Exclude only gradle output dirs from eclipse/idea project

Using minusConfigurations was causing gradle to exclude the entire
gemfire-core project from the gemfire-web classpath. All we wanted to
filter out was the generated output directories from gradle, which are
getting added because we have an ugly provided dependency on those
output directory.

Now we explicitly filter out only the directories we don't want.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/bb1b538e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/bb1b538e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/bb1b538e

Branch: refs/heads/feature/GEODE-77
Commit: bb1b538ea984a37f8040af1ab09de3422a7c8a76
Parents: 97c5351
Author: Dan Smith <up...@apache.org>
Authored: Tue Nov 3 14:39:18 2015 -0800
Committer: Dan Smith <up...@apache.org>
Committed: Tue Nov 3 16:36:41 2015 -0800

----------------------------------------------------------------------
 gemfire-web/build.gradle | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/bb1b538e/gemfire-web/build.gradle
----------------------------------------------------------------------
diff --git a/gemfire-web/build.gradle b/gemfire-web/build.gradle
index 0c02b86..564b07d 100755
--- a/gemfire-web/build.gradle
+++ b/gemfire-web/build.gradle
@@ -17,8 +17,21 @@ dependencies {
 
   provided project(path: ':gemfire-junit', configuration: 'testOutput')
 }
-eclipse.classpath.minusConfigurations += [ project(':gemfire-core').configurations.classesOutput ]
-idea.module.scopes.PROVIDED.minus += [ project(':gemfire-core').configurations.classesOutput ]
+
+//Remove the gradle output directories from the eclipse classpath. These
+//are added by the classesOutput configuration, above. Unfortunately, using
+//minusConfigurations does not work here, because it removes the entire
+//gemfire-core project
+eclipse.classpath.file {
+    whenMerged { classpath ->
+        classpath.entries.removeAll { entry -> entry.path.contains('gemfire-core/build')}
+    }
+}
+idea.module.iml {
+  whenMerged {module ->
+     module.dependencies.removeAll { entry -> entry.toString().contains('gemfire-core/build')}
+  }
+}
 
 artifacts {
   archives jar