From bf837fc68c1dc784985350dd92bcd92e3299e6d4 Mon Sep 17 00:00:00 2001 From: Lars Grefer Date: Thu, 21 Nov 2024 23:44:20 +0100 Subject: [PATCH] Harden javac tasks --- build.gradle | 4 ++++ okhttp-spring-client/build.gradle | 2 ++ 2 files changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index ef3c84b..79a84ee 100644 --- a/build.gradle +++ b/build.gradle @@ -29,6 +29,10 @@ allprojects { } } + tasks.withType(JavaCompile).configureEach { + options.compilerArgs += ['-Werror'] + } + tasks.withType(Javadoc).configureEach { options.addBooleanOption "Xdoclint:-missing", true failOnError = false diff --git a/okhttp-spring-client/build.gradle b/okhttp-spring-client/build.gradle index d2f0eb7..ec7799d 100644 --- a/okhttp-spring-client/build.gradle +++ b/okhttp-spring-client/build.gradle @@ -12,4 +12,6 @@ dependencies { api "com.squareup.okhttp3:okhttp" api "org.springframework:spring-web" + + compileOnly "com.google.code.findbugs:jsr305:3.0.2" }