FINERACT-1208: -Werror javac compilerArg lost during move to multi modules
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
18f1060d05
commit
88765f135b
+1
-1
@@ -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")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user