[Compiler] Mark all entrypoints to compiler API as experimental
This commit is contained in:
committed by
teamcity
parent
169e80e8c9
commit
1a8496757e
@@ -44,6 +44,8 @@ dependencies {
|
||||
antLauncherJar(toolsJar())
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
sourceSets {
|
||||
"main" {}
|
||||
"test" {
|
||||
|
||||
@@ -53,6 +53,10 @@ sourceSets {
|
||||
"test" { }
|
||||
}
|
||||
|
||||
allprojects {
|
||||
optInToExperimentalCompilerApi()
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
languageVersion = "1.4"
|
||||
|
||||
@@ -21,6 +21,8 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
tasks.getByName<Jar>("jar") {
|
||||
//excludes unused bunch files
|
||||
exclude("META-INF/extensions/*.xml.**")
|
||||
|
||||
@@ -24,6 +24,8 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -18,3 +18,5 @@ sourceSets {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all-compatibility"
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
+2
-1
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.compiler.plugin
|
||||
import org.jetbrains.kotlin.config.CompilerConfiguration
|
||||
import org.jetbrains.kotlin.config.CompilerConfigurationKey
|
||||
|
||||
@ExperimentalCompilerApi
|
||||
interface CommandLineProcessor {
|
||||
val pluginId: String
|
||||
val pluginOptions: Collection<AbstractCliOption>
|
||||
@@ -63,4 +64,4 @@ interface CommandLineProcessor {
|
||||
|
||||
return this.toMutableList()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -11,6 +11,7 @@ import org.jetbrains.kotlin.config.CompilerConfiguration
|
||||
import org.jetbrains.kotlin.config.CompilerConfigurationKey
|
||||
import org.jetbrains.kotlin.extensions.ProjectExtensionDescriptor
|
||||
|
||||
@ExperimentalCompilerApi
|
||||
abstract class CompilerPluginRegistrar {
|
||||
companion object {
|
||||
val COMPILER_PLUGIN_REGISTRARS: CompilerConfigurationKey<MutableList<CompilerPluginRegistrar>> =
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.jetbrains.kotlin.config.CompilerConfigurationKey
|
||||
replaceWith = ReplaceWith("CompilerPluginRegistrar", "org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar"),
|
||||
level = DeprecationLevel.WARNING
|
||||
)
|
||||
@ExperimentalCompilerApi
|
||||
interface ComponentRegistrar {
|
||||
companion object {
|
||||
@Suppress("DEPRECATION")
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.compiler.plugin
|
||||
|
||||
@RequiresOptIn("This API is experimental. There are no stability guarantees for it")
|
||||
annotation class ExperimentalCompilerApi
|
||||
@@ -17,6 +17,8 @@ dependencies {
|
||||
testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
sourceSets {
|
||||
"main" { none() }
|
||||
"test" { projectDefault() }
|
||||
|
||||
@@ -40,6 +40,8 @@ dependencies {
|
||||
testApi(toolsJar())
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
val generationRoot = projectDir.resolve("tests-gen")
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -82,6 +82,8 @@ dependencies {
|
||||
testApiJUnit5()
|
||||
}
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
sourceSets {
|
||||
"main" { }
|
||||
"test" { projectDefault() }
|
||||
|
||||
Reference in New Issue
Block a user