Skip to content

Commit 246ec7e

Browse files
author
Vincent Potucek
committed
removeWildcardImports
1 parent a953860 commit 246ec7e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ plugins {
5454
id 'lifecycle-base'
5555
id 'opensearch.docker-support'
5656
id 'opensearch.global-build-info'
57-
id "com.diffplug.spotless" version "6.25.0" apply false
57+
id "com.diffplug.spotless" version "7.1.0" apply false
5858
id "org.gradle.test-retry" version "1.6.2" apply false
5959
id "test-report-aggregation"
6060
id 'jacoco-report-aggregation'

gradle/formatting.gradle

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,7 @@ allprojects {
8585
eclipse().withP2Mirrors(Map.of("https://download.eclipse.org/", "https://mirror.umd.edu/eclipse/")).configFile rootProject.file('buildSrc/formatterConfig.xml')
8686
trimTrailingWhitespace()
8787
endWithNewline()
88-
89-
custom 'Refuse wildcard imports', {
90-
// Wildcard imports can't be resolved; fail the build
91-
if (it =~ /\s+import .*\*;/) {
92-
throw new AssertionError("Do not use wildcard imports. 'spotlessApply' cannot resolve this issue.")
93-
}
94-
}
88+
removeWildcardImports()
9589

9690
// See DEVELOPER_GUIDE.md for details of when to enable this.
9791
if (System.getProperty('spotless.paddedcell') != null) {

0 commit comments

Comments
 (0)