aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src/main/groovy/refinery-java-conventions.gradle
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-07-28 12:29:05 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-07-28 12:29:05 +0200
commit94a1e92b5057dccbae582d34592486d4fa74e537 (patch)
treeb6af942707a4992dd2a6a72019715b4116680134 /buildSrc/src/main/groovy/refinery-java-conventions.gradle
parentchore: bump dependencies (diff)
downloadrefinery-94a1e92b5057dccbae582d34592486d4fa74e537.tar.gz
refinery-94a1e92b5057dccbae582d34592486d4fa74e537.tar.zst
refinery-94a1e92b5057dccbae582d34592486d4fa74e537.zip
build: fix testFixtures classpath in eclipse
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