allprojects { project.apply plugin: "com.diffplug.spotless" spotless { java { // Normally this isn't necessary, but we have Java sources in // non-standard places target '**/*.java' removeUnusedImports() eclipse().configFile rootProject.file('formatter/formatterConfig.xml') trimTrailingWhitespace() endWithNewline(); // See DEVELOPER_GUIDE.md for details of when to enable this. if (System.getProperty('spotless.paddedcell') != null) { paddedCell() } } format 'misc', { target '*.md', '*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg' trimTrailingWhitespace() endWithNewline() } } }