Skip to content

Commit 730a630

Browse files
authored
Merge pull request #199 from fwolter/formatter
Add formatter.
2 parents fdf8b94 + 4f9d371 commit 730a630

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

build.gradle

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
2-
id "biz.aQute.bnd.builder" version "5.0.1"
2+
id "biz.aQute.bnd.builder" version "5.0.1"
3+
id "com.diffplug.spotless" version "5.9.0"
34
}
45

56
apply plugin: 'java'
@@ -59,7 +60,7 @@ jar {
5960
"Import-Package": "com.sun.jna.platform.win32;resolution:=optional,org.apache.commons.net.telnet;resolution:=optional,!gnu.io*,*",
6061
"Export-Package": "gnu.io*"
6162
)
62-
63+
6364
}
6465

6566
task javadocJar(type: Jar) {
@@ -73,6 +74,22 @@ task sourcesJar(type: Jar) {
7374
exclude 'native/'
7475
}
7576
}
77+
78+
spotless {
79+
format 'misc', {
80+
target '*.gradle'
81+
82+
trimTrailingWhitespace()
83+
indentWithTabs()
84+
endWithNewline()
85+
}
86+
87+
java {
88+
importOrder()
89+
removeUnusedImports()
90+
eclipse()
91+
}
92+
}
7693
/*
7794
signing {
7895
required {

0 commit comments

Comments
 (0)