Skip to content

Commit

Permalink
Merge pull request #238 from Flowdalic/smack-link-maven-coordinates
Browse files Browse the repository at this point in the history
Hyperlink Smack's Maven coordinates
  • Loading branch information
akrherz authored Dec 14, 2023
2 parents c37b794 + 8cac483 commit 68fea1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/main/webapp/includes/download-box-smack.jspf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
<% String path = request.getContextPath();
String buildsPath = application.getInitParameter("builds-path");

String mavenCoordinates = "unknown";
String mavenCoordinates = "<a href='https://search.maven.org/search?q=g:org.igniterealtime.smack'>org.igniterealtime.smack</a>"
+ ":<a href='https://search.maven.org/artifact/org.igniterealtime.smack/smack-java8-full'>smack-java8-full</a>:";

String version = Versions.getVersion("smack");
if (version != null) {
mavenCoordinates = "org.igniterealtime.smack:smack-java8-full:" + version;
mavenCoordinates += version;
} else {
mavenCoordinates += "[version]";
}
%>

Expand All @@ -28,7 +32,7 @@
</span>

<h2>Smack <%= version %></h2>
<p>Easy to use Java XMPP client library.</p>
<p>Modular, portable and easy to use XMPP client library for Android and Java.</p>

<span class="ignite_download_choose">Maven Coordinates: <%= mavenCoordinates %></span>

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/projects/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<div class="ignite_project_content">
<a href="smack/" class="ignite_project_smack">
<h1>Smack <span><%= Versions.getVersion("smack") %></span></h1></a>
<p>Easy to use Java XMPP client library.</p>
<p>Modular, portable and easy to use XMPP client library for Android and Java.</p>
<p><a href="smack/" class="ignite_link_arrow"><strong>Learn More</strong></a></p>
</div>
</div>
Expand Down

0 comments on commit 68fea1f

Please sign in to comment.