diff --git a/src/main/webapp/includes/download-box-smack.jspf b/src/main/webapp/includes/download-box-smack.jspf index a2f752a0..ce1b831e 100644 --- a/src/main/webapp/includes/download-box-smack.jspf +++ b/src/main/webapp/includes/download-box-smack.jspf @@ -4,19 +4,10 @@ <% String path = request.getContextPath(); String buildsPath = application.getInitParameter("builds-path"); + String mavenCoordinates = "unknown"; String version = Versions.getVersion("smack"); - if (version == null) { - version = "0.0"; - } - - DecimalFormat formatter = new DecimalFormat("0.00"); - String basedir = buildsPath + "/smack"; - File binZip = new File(basedir, "smack-" + version + ".zip"); - - String buildDate = "UNKNOWN"; - if (binZip.exists()) { - SimpleDateFormat dateFormat = new SimpleDateFormat("MMMM d, yyyy"); - buildDate = dateFormat.format(new Date(binZip.lastModified())); + if (version != null) { + mavenCoordinates = "org.igniterealtime.smack:smack-java8-full:" + version; } %> @@ -39,23 +30,7 @@

Smack <%= version %>

Easy to use Java XMPP client library.

- Choose your platform: - - - - - + Maven Coordinates: <%= mavenCoordinates %>