Build: suppress version and JVM target warnings
To further reduce the output on each build.
This commit is contained in:
@@ -128,8 +128,9 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile>().configureEach {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
kotlinOptions.freeCompilerArgs +=
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
listOf("-Xopt-in=kotlin.RequiresOptIn", "-Xskip-runtime-version-check")
|
"-Xopt-in=kotlin.RequiresOptIn", "-Xskip-runtime-version-check", "-Xsuppress-version-warnings"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks["build"].dependsOn(":prepare-deps:build")
|
tasks["build"].dependsOn(":prepare-deps:build")
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ dependencies {
|
|||||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
apiVersion = "1.3"
|
apiVersion = "1.3"
|
||||||
|
freeCompilerArgs += "-Xsuppress-version-warnings"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
// This module is being run from within Gradle, older versions of which only have kotlin-stdlib 1.3 in the runtime classpath.
|
// This module is being run from within Gradle, older versions of which only have kotlin-stdlib 1.3 in the runtime classpath.
|
||||||
apiVersion = "1.3"
|
apiVersion = "1.3"
|
||||||
|
freeCompilerArgs += "-Xsuppress-version-warnings"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ sourceSets {
|
|||||||
"test" {}
|
"test" {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
runtimeJar()
|
runtimeJar()
|
||||||
|
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|||||||
@@ -18,3 +18,9 @@ dependencies {
|
|||||||
compileOnly(project(":core:metadata"))
|
compileOnly(project(":core:metadata"))
|
||||||
compileOnly(protobufLite())
|
compileOnly(protobufLite())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ dependencies {
|
|||||||
testRuntimeOnly(project(":kotlin-reflect"))
|
testRuntimeOnly(project(":kotlin-reflect"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (deployVersion != null) {
|
if (deployVersion != null) {
|
||||||
publish()
|
publish()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
@@ -19,7 +18,9 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
kotlinOptions.freeCompilerArgs += "-Xallow-kotlin-package"
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xallow-kotlin-package", "-Xsuppress-deprecated-jvm-target-warning"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
publish()
|
publish()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
@@ -32,7 +31,9 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
kotlinOptions.freeCompilerArgs += "-Xallow-kotlin-package"
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xallow-kotlin-package", "-Xsuppress-deprecated-jvm-target-warning"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
publish()
|
publish()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
@@ -18,7 +17,9 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||||
kotlinOptions.freeCompilerArgs += "-Xallow-kotlin-package"
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xallow-kotlin-package", "-Xsuppress-deprecated-jvm-target-warning"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
publish()
|
publish()
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ tasks.withType<KotlinCompile> {
|
|||||||
freeCompilerArgs += listOf(
|
freeCompilerArgs += listOf(
|
||||||
"-Xallow-kotlin-package",
|
"-Xallow-kotlin-package",
|
||||||
"-Xmulti-platform",
|
"-Xmulti-platform",
|
||||||
|
"-Xsuppress-deprecated-jvm-target-warning",
|
||||||
"-Xopt-in=kotlin.RequiresOptIn",
|
"-Xopt-in=kotlin.RequiresOptIn",
|
||||||
"-Xopt-in=kotlin.contracts.ExperimentalContracts"
|
"-Xopt-in=kotlin.contracts.ExperimentalContracts"
|
||||||
)
|
)
|
||||||
@@ -90,4 +91,3 @@ publishing {
|
|||||||
maven("${rootProject.buildDir}/internal/repo")
|
maven("${rootProject.buildDir}/internal/repo")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ compileTestKotlin {
|
|||||||
"-Xopt-in=kotlin.RequiresOptIn",
|
"-Xopt-in=kotlin.RequiresOptIn",
|
||||||
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
|
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
|
||||||
"-Xopt-in=kotlin.ExperimentalStdlibApi",
|
"-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.
|
// This is needed for JavaTypeTest; typeOf for non-reified type parameters doesn't work otherwise, for implementation reasons.
|
||||||
freeCompilerArgs.remove("-Xno-optimized-callable-references")
|
freeCompilerArgs.remove("-Xno-optimized-callable-references")
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ 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", "-Xskip-runtime-version-check"]
|
kotlinOptions.freeCompilerArgs += [
|
||||||
|
"-Xskip-prerelease-check", "-Xskip-runtime-version-check", "-Xsuppress-version-warnings"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ tasks {
|
|||||||
withType<KotlinCompile> {
|
withType<KotlinCompile> {
|
||||||
kotlinOptions.languageVersion = "1.3"
|
kotlinOptions.languageVersion = "1.3"
|
||||||
kotlinOptions.apiVersion = "1.3"
|
kotlinOptions.apiVersion = "1.3"
|
||||||
kotlinOptions.freeCompilerArgs += listOf("-Xskip-prerelease-check")
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xskip-prerelease-check", "-Xsuppress-version-warnings"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
named<Jar>("jar") {
|
named<Jar>("jar") {
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ tasks {
|
|||||||
withType<KotlinCompile> {
|
withType<KotlinCompile> {
|
||||||
kotlinOptions.languageVersion = "1.3"
|
kotlinOptions.languageVersion = "1.3"
|
||||||
kotlinOptions.apiVersion = "1.3"
|
kotlinOptions.apiVersion = "1.3"
|
||||||
kotlinOptions.freeCompilerArgs += listOf("-Xskip-prerelease-check")
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xskip-prerelease-check", "-Xsuppress-version-warnings"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
named<Jar>("jar") {
|
named<Jar>("jar") {
|
||||||
|
|||||||
@@ -124,7 +124,9 @@ tasks {
|
|||||||
kotlinOptions.jdkHome = rootProject.extra["JDK_18"] as String
|
kotlinOptions.jdkHome = rootProject.extra["JDK_18"] as String
|
||||||
kotlinOptions.languageVersion = "1.3"
|
kotlinOptions.languageVersion = "1.3"
|
||||||
kotlinOptions.apiVersion = "1.3"
|
kotlinOptions.apiVersion = "1.3"
|
||||||
kotlinOptions.freeCompilerArgs += listOf("-Xskip-prerelease-check")
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xskip-prerelease-check", "-Xsuppress-version-warnings"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
named<ProcessResources>("processResources") {
|
named<ProcessResources>("processResources") {
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ 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", "-Xskip-runtime-version-check"]
|
kotlinOptions.freeCompilerArgs += [
|
||||||
|
"-Xskip-prerelease-check", "-Xskip-runtime-version-check", "-Xsuppress-version-warnings"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ 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", "-Xskip-runtime-version-check"]
|
kotlinOptions.freeCompilerArgs += [
|
||||||
|
"-Xskip-prerelease-check", "-Xskip-runtime-version-check", "-Xsuppress-version-warnings"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
description = "Kotlin SamWithReceiver Compiler Plugin"
|
description = "Kotlin SamWithReceiver Compiler Plugin"
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|||||||
Reference in New Issue
Block a user