File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
spring-javaformat-gradle/spring-javaformat-gradle-plugin Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 400400 <configuration >
401401 <source >${java.version} </source >
402402 <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 >
403408 </configuration >
404409 </plugin >
405410 <plugin >
Original file line number Diff line number Diff line change @@ -61,4 +61,10 @@ artifacts {
6161 archives javadocJar
6262}
6363
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