diff options
author | 2022-07-28 12:29:05 +0200 | |
---|---|---|
committer | 2022-07-28 12:29:05 +0200 | |
commit | 94a1e92b5057dccbae582d34592486d4fa74e537 (patch) | |
tree | b6af942707a4992dd2a6a72019715b4116680134 /buildSrc/src/main/groovy/refinery-java-conventions.gradle | |
parent | chore: bump dependencies (diff) | |
download | refinery-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.gradle | 7 |
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 | ||