File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ before_install:
2121 - ln -s "/tmp/protobuf-${PROTOBUF_VERSION}/$(uname -s)-$(uname -p)" /tmp/protobuf
2222 - mkdir -p $HOME/.gradle
2323 - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
24+ - echo "failOnWarnings=true" >> $HOME/.gradle/gradle.properties
2425
2526install :
2627 - ./gradlew assemble generateTestProto
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ subprojects {
3232 [compileJava, compileTestJava]. each() {
3333 it. options. compilerArgs + = [" -Xlint:all" , " -Xlint:-options" ]
3434 it. options. encoding = " UTF-8"
35+ if (rootProject. hasProperty(' failOnWarnings' ) && rootProject. failOnWarnings. toBoolean()) {
36+ it. options. compilerArgs + = [" -Werror" ]
37+ }
3538 }
3639
3740 compileTestJava {
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ cd "%WORKSPACE%"
1313set ESCWORKSPACE = %WORKSPACE:\ =\\ %
1414
1515echo targetArch=x86_32> gradle.properties
16+ echo failOnWarnings=true>> gradle.properties
1617echo vcProtobufLibs=%ESCWORKSPACE% \\grpc-java-helper\\protobuf-3.0.0-beta-3\\cmake\\build\\Release>> gradle.properties
1718echo vcProtobufInclude=%ESCWORKSPACE% \\grpc-java-helper\\protobuf-3.0.0-beta-3\\cmake\\build\\include>> gradle.properties
You can’t perform that action at this time.
0 commit comments