Build: use -Xskip-runtime-version-check globally in project
This commit is contained in:
@@ -460,6 +460,7 @@ allprojects {
|
|||||||
"-Xjvm-default=compatibility",
|
"-Xjvm-default=compatibility",
|
||||||
"-Xno-optimized-callable-references",
|
"-Xno-optimized-callable-references",
|
||||||
"-Xno-kotlin-nothing-value-exception",
|
"-Xno-kotlin-nothing-value-exception",
|
||||||
|
"-Xskip-runtime-version-check",
|
||||||
"-Xsuppress-deprecated-jvm-target-warning" // Remove as soon as there are no modules for JDK 1.6 & 1.7
|
"-Xsuppress-deprecated-jvm-target-warning" // Remove as soon as there are no modules for JDK 1.6 & 1.7
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ tasks.withType<KotlinCompile> {
|
|||||||
kotlinOptions.apiVersion = "1.4"
|
kotlinOptions.apiVersion = "1.4"
|
||||||
kotlinOptions.freeCompilerArgs += listOf(
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
"-Xskip-prerelease-check",
|
"-Xskip-prerelease-check",
|
||||||
"-Xskip-runtime-version-check",
|
|
||||||
"-Xsuppress-version-warnings",
|
"-Xsuppress-version-warnings",
|
||||||
"-Xuse-ir" // Needed as long as languageVersion is less than 1.5.
|
"-Xuse-ir" // Needed as long as languageVersion is less than 1.5.
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,9 +16,6 @@ sourceSets {
|
|||||||
"test" {}
|
"test" {}
|
||||||
}
|
}
|
||||||
|
|
||||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
|
||||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xskip-runtime-version-check"
|
|
||||||
|
|
||||||
val mutesPackageName = "org.jetbrains.kotlin.test.mutes"
|
val mutesPackageName = "org.jetbrains.kotlin.test.mutes"
|
||||||
|
|
||||||
application {
|
application {
|
||||||
|
|||||||
@@ -17,10 +17,6 @@ dependencies {
|
|||||||
embedded(project(":kotlinx-serialization-compiler-plugin")) { transitive = false }
|
embedded(project(":kotlinx-serialization-compiler-plugin")) { transitive = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(project.compileKotlin.class) {
|
|
||||||
kotlinOptions.freeCompilerArgs += ["-Xskip-runtime-version-check"]
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifestAttributes(manifest, project)
|
manifestAttributes(manifest, project)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,9 +43,3 @@ val unpill by tasks.creating {
|
|||||||
dependsOn(jar)
|
dependsOn(jar)
|
||||||
doLast { runPillTask("unpill") }
|
doLast { runPillTask("unpill") }
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
||||||
kotlinOptions {
|
|
||||||
freeCompilerArgs = freeCompilerArgs + "-Xskip-runtime-version-check"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user