From 0e3445892fe1305fa4158d7717de059c15236913 Mon Sep 17 00:00:00 2001 From: Nathan Glover Date: Mon, 19 Mar 2018 14:24:19 -0400 Subject: [PATCH] gather version from pom file --- pom.xml | 32 ++++++++++++++++++- .../itsnathang/placeholders/Geolocation.java | 4 +-- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index eabd18d..eb42765 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.itsnathang.placeholders Geolocation - 1.0 + 1.1 Provides placeholders related to a player's geographical location. @@ -34,4 +34,34 @@ provided + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + ${name} + + + true + true + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.2 + + 1.8 + 1.8 + UTF-8 + false + + + + \ No newline at end of file diff --git a/src/main/java/me/itsnathang/placeholders/Geolocation.java b/src/main/java/me/itsnathang/placeholders/Geolocation.java index 915aa91..081e024 100644 --- a/src/main/java/me/itsnathang/placeholders/Geolocation.java +++ b/src/main/java/me/itsnathang/placeholders/Geolocation.java @@ -10,7 +10,7 @@ import java.util.UUID; public class Geolocation extends PlaceholderExpansion implements Cleanable { - + private final String VERSION = getClass().getPackage().getImplementationVersion(); private Map cache = new HashMap<>(); @Override @@ -30,7 +30,7 @@ public String getPlugin() { @Override public String getVersion() { - return "1.1"; + return VERSION; } @Override