Skip to content

Commit

Permalink
Fix broken Sonatype links in HTML reports (#750)
Browse files Browse the repository at this point in the history
Old `search.maven.org` domain was replaced with `central.sonatype.com`
  • Loading branch information
marcosalis authored Mar 15, 2023
1 parent 116a65a commit bc86b77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("<a target=\"_blank\" href=\"%s\">%s</a>", versionUrl, "Sonatype")
}
}
Expand Down

0 comments on commit bc86b77

Please sign in to comment.