Skip to content

Commit 2106118

Browse files
committed
Link release strings to Maven repository
1 parent 3804e54 commit 2106118

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

html-report.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
checkMark="✔"
1515
xMark="✕"
16+
repoBase="https://maven.scijava.org"
17+
gavFormat="$repoBase/#nexus-search;gav~%s~%s~%s~~"
1618

1719
# -- Functions --
1820

@@ -143,8 +145,10 @@ do
143145
test "$url" &&
144146
echo "<td><a href=\"$url\">$a</td>" ||
145147
echo "<td>$a</td>"
146-
echo "<td>$bomVersion</td>"
147-
echo "<td>$newestRelease</td>"
148+
bomVersionLink=$(printf "$gavFormat" "$g" "$a" "$bomVersion")
149+
echo "<td><a href="$bomVersionLink">$bomVersion</a></td>"
150+
newestReleaseLink=$(printf "$gavFormat" "$g" "$a" "$newestRelease")
151+
echo "<td><a href="$newestReleaseLink">$newestRelease</a></td>"
148152
echo "<td>$bomOK</td>"
149153
if [ "$lastVetted" -eq 0 ]
150154
then

0 commit comments

Comments
 (0)