aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src/main/groovy/refinery-java-conventions.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc/src/main/groovy/refinery-java-conventions.gradle')
-rw-r--r--buildSrc/src/main/groovy/refinery-java-conventions.gradle7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/refinery-java-conventions.gradle b/buildSrc/src/main/groovy/refinery-java-conventions.gradle
index b2efd7e9..5bc73f61 100644
--- a/buildSrc/src/main/groovy/refinery-java-conventions.gradle
+++ b/buildSrc/src/main/groovy/refinery-java-conventions.gradle
@@ -69,6 +69,13 @@ eclipse {
69 if (entry.path.endsWith('-gen')) { 69 if (entry.path.endsWith('-gen')) {
70 entry.entryAttributes['ignore_optional_problems'] = true 70 entry.entryAttributes['ignore_optional_problems'] = true
71 } 71 }
72 // If a project has a main dependency on a project and an test dependency on the testFixtures of a project,
73 // it will be errorneously added as a test-only dependency to Eclipse.
74 // As a workaround, we add all project dependencies as main dependencies
75 // (we do not deliberately use test-only project dependencies).
76 if (entry in org.gradle.plugins.ide.eclipse.model.ProjectDependency) {
77 entry.entryAttributes.remove('test')
78 }
72 } 79 }
73 } 80 }
74 81