allprojects { plugins.withId('com.diffplug.gradle.spotless') { spotless { enforceCheck false encoding 'UTF-8' plugins.withId('java') { java { importOrderFile file("file:${project.rootDir}/config/eclipseconf/donna.importorder") eclipse().configFile file("file:${project.rootDir}/config/eclipseconf/DonnaCodeConventies.xml") removeUnusedImports() } } format 'misc', { target '.gitignore', '*.gradle', 'gradle/*.gradle', '**/*.adoc' trimTrailingWhitespace() indentWithSpaces() endWithNewline() } } } }