Skip to content

Commit

Permalink
fail on any error
Browse files Browse the repository at this point in the history
  • Loading branch information
legoguy1000 committed Jan 16, 2025
1 parent 948c5df commit 0058edc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ wpi.java.configureTestTasks(test)
// Configure string concat to always inline compile
tasks.withType(JavaCompile) {
options.compilerArgs.add '-XDstringConcat=inline'
// only run in GH actions
if (System.getenv("GITHUB_ACTOR") != null && !System.getenv("GITHUB_ACTOR").equals("")) {
options.compilerArgs << "-Xlint:all" << "-Xlint:-processing" << "-Xlint:-serial" << "-Werror"
outputs.upToDateWhen { false } // Force recompile, even if source file hasn't changed
}
}

javadoc {
Expand Down

0 comments on commit 0058edc

Please sign in to comment.