Added compiler options to detect warnings/deprecations
(2516)
@@ -44,6 +44,13 @@ subprojects {
javadoc {
options.encoding = 'UTF-8'
}
+
+ tasks.withType(JavaCompile) {
+ options.encoding = 'UTF-8'
+ options.deprecation = true
+ options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation", "-parameters"]
+ }
+
//Commented PMD and Findbugs as its taking too much time for very little value
//Perhaps run every 20 CI builds (mod of ci build number)
// apply from: "$rootDir/gradle/code-quality.gradle"
@@ -73,8 +80,6 @@ subprojects {
packageName "springfox"
}
- compileJava.options.encoding = 'UTF-8'
-
sourceCompatibility = jdkVersion
targetCompatibility = jdkVersion
group = 'io.springfox'
