diff --git a/plugins/package-managers/gradle-plugin/src/main/kotlin/OrtModelBuilder.kt b/plugins/package-managers/gradle-plugin/src/main/kotlin/OrtModelBuilder.kt index 77f89523c7615..e8a5f770ad6b3 100644 --- a/plugins/package-managers/gradle-plugin/src/main/kotlin/OrtModelBuilder.kt +++ b/plugins/package-managers/gradle-plugin/src/main/kotlin/OrtModelBuilder.kt @@ -172,6 +172,9 @@ internal class OrtModelBuilder : ToolingModelBuilder { }.recoverCatching { @Suppress("DEPRECATION") selectedComponent.repositoryName + }.map { + // Work around https://github.com/gradle/gradle/issues/25674. + if (it == "26c913274550a0b2221f47a0fe2d2358") "MavenRepo" else it }.getOrNull() repositories[repositoryId]?.let { repositoryUrl ->