You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/avoidance/ComputeAffectedProjectsTask.kt
Copy file name to clipboardExpand all lines: platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/tasks/CheckManifestPermissionsTask.kt
val fileVersion = versionFile.asFile.get().readText().trim()
72
+
val versionFilePath = versionFile.asFile.get().toPath()
73
+
val fileVersion = versionFilePath.readText().trim()
62
74
val requiredVersion = catalogVersion.get()
63
75
64
-
check(fileVersion == requiredVersion) {
65
-
"Version ($fileVersion) in file '${versionFileRelativePath.get()}' does not match the version in ${catalogName.get()}.versions.toml ($requiredVersion). Please ensure these are aligned"
76
+
val valid = fileVersion == requiredVersion
77
+
if (!valid) {
78
+
val problemId =
79
+
ProblemId.create(
80
+
"validate-versions-match",
81
+
"Versions mismatch",
82
+
FoundryShared.PROBLEM_GROUP,
83
+
)
84
+
problemReporter.throwing(
85
+
GradleException(
86
+
"Version ($fileVersion) in file '${versionFileRelativePath.get()}' does not match the version in ${catalogName.get()}.versions.toml ($requiredVersion)."
Copy file name to clipboardExpand all lines: platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/tasks/robolectric/UpdateRobolectricJarsTask.kt
0 commit comments