From c0046ce8edd50234c276bc8c61e9f78ffc27069d Mon Sep 17 00:00:00 2001 From: Marco Salis Date: Wed, 15 Mar 2023 13:22:46 +0100 Subject: [PATCH] Fix broken Sonatype links in HTML reports Old `search.maven.org` domain was replaced with `central.sonatype.com` --- .../github/benmanes/gradle/versions/reporter/HtmlReporter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt index 0d3703ba..14deed53 100644 --- a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt +++ b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/reporter/HtmlReporter.kt @@ -417,12 +417,12 @@ class HtmlReporter( } private fun getMvnVersionString(group: String, name: String, version: String?): String { - // https://search.maven.org/artifact/com.azure/azure-core-http-netty/1.5.4 + // https://central.sonatype.com/artifact/com.azure/azure-core-http-netty/1.5.4 if (version == null) { return "" } val versionUrl = String - .format("https://search.maven.org/artifact/%s/%s/%s/bundle", group, name, version) + .format("https://central.sonatype.com/artifact/%s/%s/%s/bundle", group, name, version) return String.format("%s", versionUrl, "Sonatype") } }