Skip to content

Commit

Permalink
Improve config of Groovy formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed Oct 5, 2018
1 parent 59b499f commit 1adc60d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,14 @@ class DefaultsPlugin implements Plugin<Project> {
}
project.plugins.withId('groovy') {
groovy {
excludeJava()
importOrder 'java', 'javax', 'groovy', ''
removeUnusedImports()
greclipse().configFile(project.rootProject.file('gradle/eclipse-java-formatter.xml'))
}
}
format 'gradle', {
groovyGradle {
target '**/*.gradle'
trimTrailingWhitespace()
indentWithSpaces(2)
endWithNewline()
greclipse().configFile(project.rootProject.file('gradle/eclipse-java-formatter.xml'))
}
}
}
Expand Down

0 comments on commit 1adc60d

Please sign in to comment.