[Repo] Don't use kotlinOptions in repo build scripts
^KT-63419 In Progress
This commit is contained in:
committed by
Space Team
parent
22e1e79c41
commit
6b19b8b9d0
@@ -1,3 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
|
||||
description = "Kotlin Compiler Infrastructure for Scripting"
|
||||
|
||||
@@ -40,10 +41,8 @@ sourceSets {
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xskip-metadata-version-check"
|
||||
}
|
||||
tasks.withType<KotlinJvmCompile>().configureEach {
|
||||
compilerOptions.freeCompilerArgs.add("-Xskip-metadata-version-check")
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
|
||||
description = "Kotlin Scripting Compiler Plugin"
|
||||
|
||||
plugins {
|
||||
@@ -46,9 +48,10 @@ sourceSets {
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = freeCompilerArgs - "-progressive" + "-Xskip-metadata-version-check"
|
||||
tasks.withType<KotlinJvmCompile>().configureEach {
|
||||
compilerOptions {
|
||||
progressiveMode.set(false)
|
||||
freeCompilerArgs.add("-Xskip-metadata-version-check")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
@@ -52,8 +53,8 @@ sourceSets {
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions.freeCompilerArgs += "-Xallow-kotlin-package"
|
||||
tasks.withType<KotlinJvmCompile>().configureEach {
|
||||
compilerOptions.freeCompilerArgs.add("-Xallow-kotlin-package")
|
||||
}
|
||||
|
||||
projectTest(parallel = true) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
|
||||
description = "Kotlin Scripting Compiler extension providing code completion and static analysis"
|
||||
|
||||
@@ -31,11 +32,13 @@ sourceSets {
|
||||
"test" { }
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xskip-metadata-version-check"
|
||||
freeCompilerArgs += "-Xallow-kotlin-package"
|
||||
}
|
||||
tasks.withType<KotlinJvmCompile>().configureEach {
|
||||
compilerOptions.freeCompilerArgs.addAll(
|
||||
listOf(
|
||||
"-Xskip-metadata-version-check",
|
||||
"-Xallow-kotlin-package",
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
standardPublicJars()
|
||||
|
||||
Reference in New Issue
Block a user