https://github.com/diffplug/spotless/issues/111#issuecomment-652081184 Maintainer of spotless says > Just a bump that `src/*/java/**/*.java` will perform far better than `**/*.java`. We heavily discourage `**/blah wildcards`. Meanwhile NIA uses the heavily discouraged wildcards such as ``` kotlin { target("**/*.kt") targetExclude("**/build/**/*.kt") ktlint(ktlintVersion).editorConfigOverride( mapOf( "android" to "true", ), ) licenseHeaderFile(rootProject.file("spotless/copyright.kt")) } ```