[Gradle] Fix spelling errors in tryK2 report

^KT-58869 Fixed
This commit is contained in:
Yahor Berdnikau
2023-05-30 09:50:50 +02:00
committed by Space Team
parent a9352abb93
commit 4b643480d6
2 changed files with 7 additions and 5 deletions
@@ -30,7 +30,7 @@ class TryK2IT : KGPBaseTest() {
build("--dry-run") {
assertOutputContainsExactTimes(EXPERIMENTAL_TRY_K2_WARNING_MESSAGE, 1)
assertOutputContains("No Kotlin compilation tasks have run")
assertOutputContains("No Kotlin compilation tasks have been run")
}
}
}
@@ -88,7 +88,7 @@ class TryK2IT : KGPBaseTest() {
|##### 'kotlin.experimental.tryK2' results (Kotlin/Native not checked) #####
|:lib:compileKotlin: 2.0 language version
|:app:compileKotlin: 2.0 language version
|##### 100% (2/2) tasks have compiled with Kotlin 2 #####
|##### 100% (2/2) tasks have been compiled with Kotlin 2.0 #####
""".trimMargin().normalizeLineEndings()
)
}
@@ -119,7 +119,7 @@ class TryK2IT : KGPBaseTest() {
|##### 'kotlin.experimental.tryK2' results (Kotlin/Native not checked) #####
|:lib:compileKotlin: 2.0 language version
|:app:compileKotlin: 2.0 language version
|##### 100% (2/2) tasks have compiled with Kotlin 2 #####
|##### 100% (2/2) tasks have been compiled with Kotlin 2.0 #####
""".trimMargin().normalizeLineEndings()
)
}
@@ -243,7 +243,7 @@ class BuildReportsService {
}
log.warn("##### 'kotlin.experimental.tryK2' results (Kotlin/Native not checked) #####")
if (tasksData.isEmpty()) {
log.warn("No Kotlin compilation tasks have run")
log.warn("No Kotlin compilation tasks have been run")
log.warn("#####")
} else {
val tasksCountWithKotlin2 = tasksData.count {
@@ -254,7 +254,9 @@ class BuildReportsService {
statsData.forEach { record ->
log.warn("${record.first}: ${record.second} language version")
}
log.warn("##### $taskWithK2Percent% ($tasksCountWithKotlin2/${tasksData.count()}) tasks have compiled with Kotlin 2 #####")
log.warn(
"##### $taskWithK2Percent% ($tasksCountWithKotlin2/${tasksData.count()}) tasks have been compiled with Kotlin 2.0 #####"
)
}
}