diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 0fa713fe371..e46f9cb33c0 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -80,3 +80,13 @@ eclipse { defaultOutputDir = new File(file('build'), 'eclipse') } } + +task copyEclipseSettings(type: Copy) { + from project.file('src/main/resources/eclipse.settings') + into '.settings' +} +// otherwise .settings is not nuked entirely +tasks.cleanEclipse { + delete '.settings' +} +tasks.eclipse.dependsOn(cleanEclipse, copyEclipseSettings)