[MPP] Prettify the message about incompatible AGP and KGP versions

add protocol for youtrack link, quote flag

^KT-53338 Fixed
This commit is contained in:
Andrei.Tyrin
2022-11-17 17:36:16 +01:00
committed by Space Team
parent 69dccec6ca
commit cc0bd8e57a
@@ -129,7 +129,7 @@ internal object KotlinMultiplatformAndroidGradlePluginCompatibilityHealthCheck {
fun androidGradlePluginVersionTooHigh(androidGradlePluginVersionString: String) = createCompatibilityWarningMessage(
"The applied Android Gradle Plugin version ($androidGradlePluginVersionString) " +
"is higher than the maximum known to the Kotlin Gradle Plugin. " +
"Tooling stability in such configuration isn't tested, please report encountered issues to kotl.in/issue"
"Tooling stability in such configuration isn't tested, please report encountered issues to https://kotl.in/issue"
)
private fun createCompatibilityWarningMessage(warning: String) = buildString {
@@ -144,7 +144,7 @@ internal object KotlinMultiplatformAndroidGradlePluginCompatibilityHealthCheck {
"${compatibleAndroidGradlePluginVersionRange.maxSupportedVersion.major}." +
"${compatibleAndroidGradlePluginVersionRange.maxSupportedVersion.minor}"
)
appendLine("To suppress this message add $KOTLIN_MPP_ANDROID_GRADLE_PLUGIN_COMPATIBILITY_NO_WARN=true to your gradle.properties")
appendLine("To suppress this message add '$KOTLIN_MPP_ANDROID_GRADLE_PLUGIN_COMPATIBILITY_NO_WARN=true' to your gradle.properties")
}
}
}