[build] kotlin.*Compile: -Xskip-prerelease-check
(cherry picked from commit 57172ac6ead928b565fefaf49d8405a07c856e25)
This commit is contained in:
@@ -144,6 +144,7 @@ kotlinNativeInterop {
|
|||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
allWarningsAsErrors=true
|
allWarningsAsErrors=true
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-Xskip-prerelease-check"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ sourceSets.main.kotlin.srcDirs += "src/jvm/kotlin"
|
|||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
freeCompilerArgs = ['-Xuse-experimental=kotlin.ExperimentalUnsignedTypes', '-Xuse-experimental=kotlin.Experimental',
|
freeCompilerArgs = ['-Xuse-experimental=kotlin.ExperimentalUnsignedTypes', '-Xuse-experimental=kotlin.Experimental',
|
||||||
'-Xopt-in=kotlin.RequiresOptIn', "-XXLanguage:+InlineClasses"]
|
'-Xopt-in=kotlin.RequiresOptIn', "-XXLanguage:+InlineClasses", "-Xskip-prerelease-check"]
|
||||||
allWarningsAsErrors=true
|
allWarningsAsErrors=true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,11 @@ compileCompilerKotlin {
|
|||||||
dependsOn('generateCompilerProto')
|
dependsOn('generateCompilerProto')
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
kotlinOptions.allWarningsAsErrors=true
|
kotlinOptions.allWarningsAsErrors=true
|
||||||
kotlinOptions.freeCompilerArgs += ['-Xopt-in=kotlin.RequiresOptIn', '-Xopt-in=org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI']
|
kotlinOptions.freeCompilerArgs += ['-Xopt-in=kotlin.RequiresOptIn', '-Xopt-in=org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI', '-Xskip-prerelease-check']
|
||||||
|
}
|
||||||
|
|
||||||
|
compileCli_bcKotlin {
|
||||||
|
kotlinOptions.freeCompilerArgs += ['-Xskip-prerelease-check']
|
||||||
}
|
}
|
||||||
|
|
||||||
compileCompilerJava {
|
compileCompilerJava {
|
||||||
|
|||||||
@@ -5023,6 +5023,10 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileNopPluginKotlin {
|
||||||
|
kotlinOptions.freeCompilerArgs += ['-Xskip-prerelease-check']
|
||||||
|
}
|
||||||
|
|
||||||
Task pluginTest(String name, String pluginName, Closure configureClosure) {
|
Task pluginTest(String name, String pluginName, Closure configureClosure) {
|
||||||
def jarTask = project.tasks.register("jar-$pluginName", Jar) {
|
def jarTask = project.tasks.register("jar-$pluginName", Jar) {
|
||||||
it.dependsOn("compile${pluginName.capitalize()}Kotlin")
|
it.dependsOn("compile${pluginName.capitalize()}Kotlin")
|
||||||
|
|||||||
+1
@@ -183,6 +183,7 @@ class NamedNativeInteropConfig implements Named {
|
|||||||
configuration = project.configurations.create(interopStubs.name)
|
configuration = project.configurations.create(interopStubs.name)
|
||||||
project.tasks.getByName(interopStubs.getTaskName("compile", "Kotlin")) {
|
project.tasks.getByName(interopStubs.getTaskName("compile", "Kotlin")) {
|
||||||
dependsOn genTask
|
dependsOn genTask
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-Xskip-prerelease-check"]
|
||||||
}
|
}
|
||||||
|
|
||||||
interopStubs.kotlin.srcDirs generatedSrcDir
|
interopStubs.kotlin.srcDirs generatedSrcDir
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ konanArtifacts {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileKotlin {
|
||||||
|
kotlinOptions.freeCompilerArgs += ['-Xskip-prerelease-check']
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url buildKotlinCompilerRepo
|
url buildKotlinCompilerRepo
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ sourceSets["main"].withConvention(KotlinSourceSet::class) {
|
|||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
dependsOn(generateCompilerVersion)
|
dependsOn(generateCompilerVersion)
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
|
kotlinOptions.freeCompilerArgs = listOf("-Xskip-prerelease-check")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.clean {
|
tasks.clean {
|
||||||
|
|||||||
@@ -67,6 +67,10 @@ configurations {
|
|||||||
testImplementation.extendsFrom bundleDependencies
|
testImplementation.extendsFrom bundleDependencies
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-Xskip-prerelease-check"]
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
shadow "org.jetbrains.kotlin:kotlin-stdlib:1.3.0"
|
shadow "org.jetbrains.kotlin:kotlin-stdlib:1.3.0"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user