diff --git a/build.gradle b/build.gradle index ddd540066..131707f73 100644 --- a/build.gradle +++ b/build.gradle @@ -164,3 +164,21 @@ allprojects { options.addStringOption('Xdoclint:none', '-quiet') } } + + +//////////////////////////////////////////////////////////////////////// +// +// Eclipse IDE integration +// + +// workaround for +allprojects { + apply plugin: 'eclipse' + + eclipse.classpath.file.whenMerged { + entries.each { + if (it in org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry && it.entryAttributes['gradle_used_by_scope'] == 'test') + it.entryAttributes['test'] = true + } + } +}