FINERACT-1208: -Werror javac compilerArg lost during move to multi modules

This commit is contained in:
Aleksandar Vidakovic
2020-10-18 03:08:40 +02:00
committed by Michael Vorburger ⛑️
parent 18f1060d05
commit 88765f135b
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ configure(project.fineractJavaProjects) {
"-Xlint:varargs",
"-Xlint:preview",
"-Xlint:static",
// "-Werror" // TODO: @vidakovic fix this
"-Werror"
]
// TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X")
+5
View File
@@ -78,6 +78,11 @@ compileJava {
source += sourceSets.generated.java
}
tasks.withType(JavaCompile) {
// the generated code contains some warnings in build/generated/java/src/main/java/org/apache/fineract/client/auth/OAuthOkHttpClient.java#L71 that won't pass
options.compilerArgs -= ["-Werror"]
}
configurations {
generatedCompile.extendsFrom implementation
generatedRuntime.extendsFrom runtime