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 5a86b5a
Showing 1 changed file with 2 additions and 4 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";
+ groupId.replace('.', '/') + '/' + artifactId + ".html";
String badge =
"https://img.shields.io/endpoint?url=https://jvm-repo-rebuild.github.io/reproducible-central/badge/artifact/"
+ groupId.replace('.', '/') + '/' + artifactId + '/'
+ version + ".json";
"https://img.shields.io/reproducible-central/artifact/" + groupId + '/' + artifactId + '/' + version;
sink.link(url);
sink.figureGraphics(badge);
sink.link_();
Expand Down

0 comments on commit 5a86b5a

Please sign in to comment.