Skip to content

Commit

Permalink
By-pass failing removeUnusedImports step at Java 9 builds
Browse files Browse the repository at this point in the history
See diffplug/spotless#83 for details.
  • Loading branch information
sormuras committed Mar 17, 2017
1 parent cb97c73 commit 2d8ed68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ subprojects { subproj ->
licenseHeaderFile headerFile, '(package|import) '
importOrderFile rootProject.file('src/eclipse/junit-eclipse.importorder')
eclipseFormatFile rootProject.file('src/eclipse/junit-eclipse-formatter-settings.xml')
removeUnusedImports()
if (org.gradle.api.JavaVersion.current() == org.gradle.api.JavaVersion.VERSION_1_8) {
removeUnusedImports()
}

trimTrailingWhitespace()
endWithNewline()
Expand Down

0 comments on commit 2d8ed68

Please sign in to comment.