Skip to content

Commit

Permalink
Harden javac tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Nov 21, 2024
1 parent dc8876d commit bf837fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ allprojects {
}
}

tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ['-Werror']
}

tasks.withType(Javadoc).configureEach {
options.addBooleanOption "Xdoclint:-missing", true
failOnError = false
Expand Down
2 changes: 2 additions & 0 deletions okhttp-spring-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ dependencies {

api "com.squareup.okhttp3:okhttp"
api "org.springframework:spring-web"

compileOnly "com.google.code.findbugs:jsr305:3.0.2"
}

0 comments on commit bf837fc

Please sign in to comment.