CI: Only pass if there are no Gradle warnings

Adds the CLI option --warning-mode=fail to the Gradle build job. This ensures the build only passes if no warnings are cast.

See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_warnings
This commit is contained in:
Ewout ter Hoeven
2021-02-13 11:01:02 +01:00
committed by GitHub
parent c1ec16953f
commit 3e0b97b68b

View File

@@ -18,4 +18,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build --warning-mode=fail