Build: suppress deprecated JVM target warning globally

There seems to be no point in configuring the compiler argument per
project. This argument will be deleted soon anyway, when we remove
support for JDK 1.6 & 1.7.

Also remove `disableDeprecatedJvmTargetWarning`. It didn't have any
effect in all modules where it was applied because these modules
reassign `freeCompilerArgs` anyway, with
`-Xsuppress-deprecated-jvm-target-warning` in it.
This commit is contained in:
Alexander Udalov
2021-07-25 21:32:34 +02:00
parent 91c39ed01c
commit 0a9498f7e2
33 changed files with 6 additions and 133 deletions

View File

@@ -22,9 +22,3 @@ publish()
runtimeJar()
sourcesJar()
javadocJar()
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
}
}

View File

@@ -21,9 +21,3 @@ publish()
runtimeJar()
sourcesJar()
javadocJar()
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
}
}

View File

@@ -25,9 +25,3 @@ publish {
runtimeJar()
sourcesJar()
javadocJar()
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
}
}