Remove "-Xsuppress-deprecated-jvm-target-warning" compiler argument
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user