Build: suppress version and JVM target warnings

To further reduce the output on each build.
This commit is contained in:
Alexander Udalov
2021-02-17 23:09:33 +01:00
parent 49fc1b9e3e
commit 1d6b198915
18 changed files with 52 additions and 16 deletions
@@ -65,6 +65,7 @@ tasks.withType<KotlinCompile> {
freeCompilerArgs += listOf(
"-Xallow-kotlin-package",
"-Xmulti-platform",
"-Xsuppress-deprecated-jvm-target-warning",
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.contracts.ExperimentalContracts"
)
@@ -90,4 +91,3 @@ publishing {
maven("${rootProject.buildDir}/internal/repo")
}
}
+1
View File
@@ -136,6 +136,7 @@ compileTestKotlin {
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
"-Xopt-in=kotlin.ExperimentalStdlibApi",
"-Xsuppress-deprecated-jvm-target-warning",
]
// This is needed for JavaTypeTest; typeOf for non-reified type parameters doesn't work otherwise, for implementation reasons.
freeCompilerArgs.remove("-Xno-optimized-callable-references")