[Gradle][MPP] Remove Kotlin Multiplatform stability warning
^KT-54387 Verification Pending
This commit is contained in:
committed by
teamcity
parent
71fe1dae22
commit
fd9f542895
-3
@@ -199,9 +199,6 @@ internal class PropertiesProvider private constructor(private val project: Proje
|
||||
val enableKotlinToolingMetadataArtifact: Boolean
|
||||
get() = booleanProperty("kotlin.mpp.enableKotlinToolingMetadataArtifact") ?: true
|
||||
|
||||
val mppStabilityNoWarn: Boolean?
|
||||
get() = booleanProperty(KotlinMultiplatformPlugin.STABILITY_NOWARN_FLAG)
|
||||
|
||||
val mppEnableOptimisticNumberCommonization: Boolean
|
||||
get() = booleanProperty(KOTLIN_MPP_ENABLE_OPTIMISTIC_NUMBER_COMMONIZATION) ?: true
|
||||
|
||||
|
||||
-11
@@ -50,15 +50,6 @@ class KotlinMultiplatformPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) {
|
||||
checkGradleCompatibility("the Kotlin Multiplatform plugin", GradleVersion.version("6.0"))
|
||||
|
||||
if (PropertiesProvider(project).mppStabilityNoWarn != true) {
|
||||
SingleWarningPerBuild.show(
|
||||
project,
|
||||
"Kotlin Multiplatform Projects are an Alpha feature. " +
|
||||
"See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. " +
|
||||
"To hide this message, add '$STABILITY_NOWARN_FLAG=true' to the Gradle properties.\n"
|
||||
)
|
||||
}
|
||||
|
||||
handleHierarchicalStructureFlagsMigration(project)
|
||||
|
||||
project.plugins.apply(JavaBasePlugin::class.java)
|
||||
@@ -217,8 +208,6 @@ class KotlinMultiplatformPlugin : Plugin<Project> {
|
||||
|
||||
internal fun sourceSetFreeCompilerArgsPropertyName(sourceSetName: String) =
|
||||
"kotlin.mpp.freeCompilerArgsForSourceSet.$sourceSetName"
|
||||
|
||||
internal const val STABILITY_NOWARN_FLAG = "kotlin.mpp.stability.nowarn"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user