Suppress "runtime JAR files version mismatch" warnings in some plugins
This commit is contained in:
@@ -26,7 +26,7 @@ dependencies {
|
|||||||
tasks.withType(project.compileKotlin.class) {
|
tasks.withType(project.compileKotlin.class) {
|
||||||
kotlinOptions.languageVersion = "1.3"
|
kotlinOptions.languageVersion = "1.3"
|
||||||
kotlinOptions.apiVersion = "1.3"
|
kotlinOptions.apiVersion = "1.3"
|
||||||
kotlinOptions.freeCompilerArgs += ["-Xskip-prerelease-check"]
|
kotlinOptions.freeCompilerArgs += ["-Xskip-prerelease-check", "-Xskip-runtime-version-check"]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ dependencies {
|
|||||||
tasks.withType(project.compileKotlin.class) {
|
tasks.withType(project.compileKotlin.class) {
|
||||||
kotlinOptions.languageVersion = "1.3"
|
kotlinOptions.languageVersion = "1.3"
|
||||||
kotlinOptions.apiVersion = "1.3"
|
kotlinOptions.apiVersion = "1.3"
|
||||||
kotlinOptions.freeCompilerArgs += ["-Xskip-prerelease-check"]
|
kotlinOptions.freeCompilerArgs += ["-Xskip-prerelease-check", "-Xskip-runtime-version-check"]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ dependencies {
|
|||||||
tasks.withType(project.compileKotlin.class) {
|
tasks.withType(project.compileKotlin.class) {
|
||||||
kotlinOptions.languageVersion = "1.3"
|
kotlinOptions.languageVersion = "1.3"
|
||||||
kotlinOptions.apiVersion = "1.3"
|
kotlinOptions.apiVersion = "1.3"
|
||||||
kotlinOptions.freeCompilerArgs += ["-Xskip-prerelease-check"]
|
kotlinOptions.freeCompilerArgs += ["-Xskip-prerelease-check", "-Xskip-runtime-version-check"]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ 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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,3 +47,9 @@ 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