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-jmh.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-jmh.gradle')
-rw-r--r-- | buildSrc/src/main/groovy/refinery-jmh.gradle | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildSrc/src/main/groovy/refinery-jmh.gradle b/buildSrc/src/main/groovy/refinery-jmh.gradle index 17654463..fada4fb3 100644 --- a/buildSrc/src/main/groovy/refinery-jmh.gradle +++ b/buildSrc/src/main/groovy/refinery-jmh.gradle | |||
@@ -47,7 +47,9 @@ eclipse.classpath.file.whenMerged { classpath -> | |||
47 | // main and test sources are also used by jmh sources. | 47 | // main and test sources are also used by jmh sources. |
48 | usedBy += 'jmh' | 48 | usedBy += 'jmh' |
49 | } | 49 | } |
50 | entry.entryAttributes['gradle_used_by_scope'] = usedBy.join(',') | 50 | if (!usedBy.empty) { |
51 | entry.entryAttributes['gradle_used_by_scope'] = usedBy.join(',') | ||
52 | } | ||
51 | } | 53 | } |
52 | } | 54 | } |
53 | } | 55 | } |