Introduced IDEAPluginsCompatibilityAPI and returned some API
Please read the description of IDEAPluginsCompatibilityAPI. Also, you may notice, that Deprecation annotation was removed. That is because with level ERROR it isn't possible to opt-in to such API in the legit cases. And with level WARNING it won't be reported because We have diagnostic with level ERROR about OptIn marker. Sadly, there is no way to add ReplaceWith to the OptIn marker
This commit is contained in:
+10
@@ -10,6 +10,8 @@ import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
|
||||
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.WARNING
|
||||
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
|
||||
import org.jetbrains.kotlin.config.*
|
||||
import org.jetbrains.kotlin.utils.IDEAPlatforms
|
||||
import org.jetbrains.kotlin.utils.IDEAPluginsCompatibilityAPI
|
||||
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
abstract class CommonCompilerArguments : CommonToolArguments() {
|
||||
@@ -149,6 +151,14 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
||||
)
|
||||
var readDeserializedContracts: Boolean by FreezableVar(false)
|
||||
|
||||
@IDEAPluginsCompatibilityAPI(
|
||||
IDEAPlatforms._212, // maybe 211 AS used it too
|
||||
IDEAPlatforms._213,
|
||||
message = "Please migrate to -opt-in",
|
||||
plugins = "Android"
|
||||
)
|
||||
var experimental: Array<String>? = null
|
||||
|
||||
@Argument(
|
||||
value = "-Xuse-experimental",
|
||||
valueDescription = "<fq.name>",
|
||||
|
||||
Reference in New Issue
Block a user