Remove "-Xsuppress-deprecated-jvm-target-warning" compiler argument

This commit is contained in:
Abduqodiri Qurbonzoda
2022-08-10 16:48:39 +03:00
parent 983c7adb1e
commit eb3bbc3265
8 changed files with 0 additions and 14 deletions
@@ -139,8 +139,6 @@ fun Project.configureKotlinCompilationOptions() {
val jvmCompilerArgs = listOf(
"-Xno-optimized-callable-references",
"-Xno-kotlin-nothing-value-exception",
// Should this suppression be removed ?
"-Xsuppress-deprecated-jvm-target-warning" // Remove as soon as there are no modules for JDK 1.6 & 1.7
)
val coreLibProjects: List<String> by rootProject.extra
-2
View File
@@ -32,7 +32,6 @@ configureJavadocJar()
compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xsuppress-deprecated-jvm-target-warning",
]
kotlinOptions.moduleName = project.name
}
@@ -40,7 +39,6 @@ compileKotlin {
compileTestKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xsuppress-deprecated-jvm-target-warning",
]
}
-2
View File
@@ -36,7 +36,6 @@ compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-opt-in=kotlin.contracts.ExperimentalContracts",
"-Xsuppress-deprecated-jvm-target-warning",
"-opt-in=kotlin.RequiresOptIn",
]
kotlinOptions.moduleName = project.archivesBaseName
@@ -45,7 +44,6 @@ compileKotlin {
compileTestKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xsuppress-deprecated-jvm-target-warning",
"-opt-in=kotlin.RequiresOptIn",
]
}
@@ -34,7 +34,6 @@ configureJavadocJar()
compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xsuppress-deprecated-jvm-target-warning",
]
kotlinOptions.moduleName = project.name
}
@@ -42,7 +41,6 @@ compileKotlin {
compileTestKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xsuppress-deprecated-jvm-target-warning",
]
}
-1
View File
@@ -51,7 +51,6 @@ compileKotlin {
"-Xallow-kotlin-package",
"-Xno-optimized-callable-references",
"-Xno-kotlin-nothing-value-exception",
"-Xsuppress-deprecated-jvm-target-warning",
"-opt-in=kotlin.RequiresOptIn",
]
moduleName = "kotlin-reflection"
-2
View File
@@ -62,7 +62,6 @@ compileKotlin {
"-Xmultifile-parts-inherit",
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.contracts.ExperimentalContracts",
"-Xsuppress-deprecated-jvm-target-warning",
]
kotlinOptions.moduleName = project.name
}
@@ -76,7 +75,6 @@ compileTestKotlin {
"-opt-in=kotlin.ExperimentalStdlibApi",
"-opt-in=kotlin.io.path.ExperimentalPathApi",
"-Xcommon-sources=${fileTree('../test').join(',')}",
"-Xsuppress-deprecated-jvm-target-warning",
"-XXLanguage:+RangeUntilOperator",
]
}
-2
View File
@@ -113,7 +113,6 @@ compileKotlin {
"-opt-in=kotlin.ExperimentalMultiplatform",
"-opt-in=kotlin.contracts.ExperimentalContracts",
"-Xuse-14-inline-classes-mangling-scheme",
"-Xsuppress-deprecated-jvm-target-warning",
"-Xbuiltins-from-sources",
"-XXLanguage:+RangeUntilOperator",
]
@@ -127,7 +126,6 @@ compileTestKotlin {
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-opt-in=kotlin.ExperimentalStdlibApi",
"-Xsuppress-deprecated-jvm-target-warning",
"-XXLanguage:+RangeUntilOperator",
]
// This is needed for JavaTypeTest; typeOf for non-reified type parameters doesn't work otherwise, for implementation reasons.
@@ -28,7 +28,6 @@ configureJavadocJar()
compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xsuppress-deprecated-jvm-target-warning",
]
kotlinOptions.moduleName = project.name
}