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:varargs",
|
||||||
"-Xlint:preview",
|
"-Xlint:preview",
|
||||||
"-Xlint:static",
|
"-Xlint:static",
|
||||||
// "-Werror" // TODO: @vidakovic fix this
|
"-Werror"
|
||||||
]
|
]
|
||||||
// TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X")
|
// TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X")
|
||||||
|
|
||||||
|
|||||||
@@ -78,6 +78,11 @@ compileJava {
|
|||||||
source += sourceSets.generated.java
|
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 {
|
configurations {
|
||||||
generatedCompile.extendsFrom implementation
|
generatedCompile.extendsFrom implementation
|
||||||
generatedRuntime.extendsFrom runtime
|
generatedRuntime.extendsFrom runtime
|
||||||
|
|||||||
Reference in New Issue
Block a user