Disable -Werror in FIR mode inside disableDeprecatedJvmTargetWarning
This commit is contained in:
@@ -61,7 +61,7 @@ private class Java9AdditionalArgumentsProvider(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun Project.disableDeprecatedJvmTargetWarning() {
|
fun Project.disableDeprecatedJvmTargetWarning() {
|
||||||
if (!kotlinBuildProperties.disableWerror) {
|
if (!kotlinBuildProperties.useFir && !kotlinBuildProperties.disableWerror) {
|
||||||
val tasksWithWarnings: List<String> by rootProject.extra
|
val tasksWithWarnings: List<String> by rootProject.extra
|
||||||
tasks.withType<KotlinCompile>().configureEach {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
if (!tasksWithWarnings.contains(path)) {
|
if (!tasksWithWarnings.contains(path)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user