Skip to content

Commit

Permalink
[MARTIFACT-81] use the new Shields Reproducible Central badge
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Dec 11, 2024
1 parent 9fdded8 commit 8dc9743
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,9 @@ private void renderReproducibleCentralArtifact(Sink sink, Artifact a) {
private void renderReproducibleCentralArtifact(
Sink sink, String groupId, String artifactId, String version, String scope) {
String url = "https://jvm-repo-rebuild.github.io/reproducible-central/badge/artifact/"
+ groupId.replace('.', '/') + '/' + artifactId + "/index.html";
String badge =
"https://img.shields.io/endpoint?url=https://jvm-repo-rebuild.github.io/reproducible-central/badge/artifact/"
+ groupId.replace('.', '/') + '/' + artifactId + '/'
+ version + ".json";
+ groupId.replace('.', '/') + '/' + artifactId + ".html";
String badge = "https://img.shields.io/reproducible-central/artifact/" + groupId + '/' + artifactId + '/'
+ version + "&labelColor=1e5b96";
sink.link(url);
sink.figureGraphics(badge);
sink.link_();
Expand Down

0 comments on commit 8dc9743

Please sign in to comment.