diff options
author | 2022-07-28 15:30:10 +0200 | |
---|---|---|
committer | 2022-07-28 15:30:10 +0200 | |
commit | c1f0da324605c18caf137631e58878136a707df4 (patch) | |
tree | 37c91983a65d4e7d0816d5ac1b4b2be614fd1e74 /buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle | |
parent | build: fix testFixtures classpath in eclipse (diff) | |
download | refinery-c1f0da324605c18caf137631e58878136a707df4.tar.gz refinery-c1f0da324605c18caf137631e58878136a707df4.tar.zst refinery-c1f0da324605c18caf137631e58878136a707df4.zip |
build: file encoding import into Eclipse
See https://github.com/gradle/gradle/issues/898
Diffstat (limited to 'buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle')
-rw-r--r-- | buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle b/buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle index 326fa868..693cba98 100644 --- a/buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle +++ b/buildSrc/src/main/groovy/refinery-java-test-fixtures.gradle | |||
@@ -24,7 +24,9 @@ eclipse.classpath { | |||
24 | if (hasTest && usedBy.contains('testFixtures')) { | 24 | if (hasTest && usedBy.contains('testFixtures')) { |
25 | usedBy += 'test' | 25 | usedBy += 'test' |
26 | } | 26 | } |
27 | entry.entryAttributes['gradle_used_by_scope'] = usedBy.join(',') | 27 | if (!usedBy.empty) { |
28 | entry.entryAttributes['gradle_used_by_scope'] = usedBy.join(',') | ||
29 | } | ||
28 | } | 30 | } |
29 | } | 31 | } |
30 | } | 32 | } |