File tree 2 files changed +12
-1
lines changed
spring-javaformat-gradle/spring-javaformat-gradle-plugin
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 400
400
<configuration >
401
401
<source >${java.version} </source >
402
402
<target >${java.version} </target >
403
+ <compilerArgument >-Werror</compilerArgument >
404
+ <compilerArgument >-Xlint:deprecation</compilerArgument >
405
+ <compilerArgument >-Xlint:rawtypes</compilerArgument >
406
+ <compilerArgument >-Xlint:unchecked</compilerArgument >
407
+ <compilerArgument >-Xlint:varargs</compilerArgument >
403
408
</configuration >
404
409
</plugin >
405
410
<plugin >
Original file line number Diff line number Diff line change @@ -61,4 +61,10 @@ artifacts {
61
61
archives javadocJar
62
62
}
63
63
64
-
64
+ tasks. withType(JavaCompile ) {
65
+ options. compilerArgs. add(" -Werror" )
66
+ options. compilerArgs. add(" -Xlint:deprecation" )
67
+ options. compilerArgs. add(" -Xlint:rawtypes" )
68
+ options. compilerArgs. add(" -Xlint:unchecked" )
69
+ options. compilerArgs. add(" -Xlint:varargs" )
70
+ }
You can’t perform that action at this time.
0 commit comments