Skip to content

Commit c01493c

Browse files
committed
Make compiler strict: -Xlint:all
1 parent 20b3fa2 commit c01493c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ java {
2424
targetCompatibility = '11'
2525
}
2626

27-
compileJava.options.encoding = 'UTF-8'
27+
tasks.withType(JavaCompile) {
28+
options.encoding = 'UTF-8'
29+
options.compilerArgs.addAll(['-Xlint:all', '-Werror'])
30+
}
2831

2932
jar {
3033
manifest {

0 commit comments

Comments
 (0)