Skip to content

Commit

Permalink
Merge pull request #199 from fwolter/formatter
Browse files Browse the repository at this point in the history
Add formatter.
  • Loading branch information
MrDOS authored Jan 20, 2021
2 parents fdf8b94 + 4f9d371 commit 730a630
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "biz.aQute.bnd.builder" version "5.0.1"
id "biz.aQute.bnd.builder" version "5.0.1"
id "com.diffplug.spotless" version "5.9.0"
}

apply plugin: 'java'
Expand Down Expand Up @@ -59,7 +60,7 @@ jar {
"Import-Package": "com.sun.jna.platform.win32;resolution:=optional,org.apache.commons.net.telnet;resolution:=optional,!gnu.io*,*",
"Export-Package": "gnu.io*"
)

}

task javadocJar(type: Jar) {
Expand All @@ -73,6 +74,22 @@ task sourcesJar(type: Jar) {
exclude 'native/'
}
}

spotless {
format 'misc', {
target '*.gradle'

trimTrailingWhitespace()
indentWithTabs()
endWithNewline()
}

java {
importOrder()
removeUnusedImports()
eclipse()
}
}
/*
signing {
required {
Expand Down

0 comments on commit 730a630

Please sign in to comment.