Skip to content

Commit 5a5ceae

Browse files
author
Vincent Potucek
committed
new step to expand java wildcard imports diffplug#2744 diffplug#2594
1 parent d083c6c commit 5a5ceae

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

gradle/spotless.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ spotless {
33
if (project != rootProject) {
44
// the rootProject doesn't have any java
55
java {
6-
ratchetFrom 'origin/main'
76
bumpThisNumberIfACustomStepChanges(1)
8-
licenseHeaderFile rootProject.file('gradle/spotless.license')
9-
importOrderFile rootProject.file('gradle/spotless.importorder')
107
eclipse().configFile rootProject.file('gradle/spotless.eclipseformat.xml')
11-
trimTrailingWhitespace()
12-
removeUnusedImports()
13-
formatAnnotations()
14-
forbidWildcardImports()
8+
expandWildcardImports()
159
forbidRegex('ForbidGradleInternal', 'import org\\.gradle\\.api\\.internal\\.(.*)', "Don't use Gradle's internal API")
10+
forbidWildcardImports()
11+
formatAnnotations()
12+
importOrderFile rootProject.file('gradle/spotless.importorder')
13+
licenseHeaderFile rootProject.file('gradle/spotless.license')
14+
ratchetFrom 'origin/main'
15+
removeUnusedImports()
16+
trimTrailingWhitespace()
1617
}
1718
}
1819
groovyGradle {

0 commit comments

Comments
 (0)