Skip to content

Commit 4e0805e

Browse files
committed
FL-31024 KT-70700 Add diagnostic to compatibility.json
1 parent e07d16a commit 4e0805e

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

kdoctor/src/commonMain/resources/compatibility.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@
9696
"fixedIn": "1.9.23"
9797
}
9898
]
99+
},
100+
{
101+
"url": "https://youtrack.jetbrains.com/issue/KT-70700",
102+
"isCritical": true,
103+
"text": "Can't import or build project with Gradle 8.10.\nUpdate Gradle to 8.10.2+ or Kotlin to 2.0.21+",
104+
"matrix": [
105+
{
106+
"name": "Gradle",
107+
"from": "8.10",
108+
"fixedIn": "8.10.2"
109+
},
110+
{
111+
"name": "GradlePlugin(org.jetbrains.kotlin.multiplatform)",
112+
"fixedIn": "2.0.21"
113+
}
114+
]
99115
}
100116
]
101117
}

kdoctor/src/jvmTest/kotlin/VerifyCompatibilityJson.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import kotlinx.serialization.decodeFromString
21
import kotlinx.serialization.json.Json
32
import org.jetbrains.kotlin.doctor.entity.Compatibility
43
import org.jetbrains.kotlin.doctor.entity.EnvironmentPiece
@@ -40,6 +39,8 @@ class VerifyCompatibilityJson {
4039
error("Invalid semantic versions: $invalidVersions")
4140
}
4241

43-
println(compatibility.problems.joinToString("\n") { it.url })
42+
println(compatibility.problems.joinToString("\n") { problem ->
43+
"${problem.url} - ${problem.matrix.joinToString { "${it.name} [${it.from ?: "-∞"}, ${it.fixedIn ?: ""})" }}: ${problem.text}"
44+
})
4445
}
4546
}

0 commit comments

Comments
 (0)