Skip to content

Commit

Permalink
gather version from pom file
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNathanG committed Mar 19, 2018
1 parent bcc51d1 commit 0e34458
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
32 changes: 31 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.itsnathang.placeholders</groupId>
<artifactId>Geolocation</artifactId>
<version>1.0</version>
<version>1.1</version>
<description>Provides placeholders related to a player's geographical location.</description>

<repositories>
Expand Down Expand Up @@ -34,4 +34,34 @@
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<finalName>${name}</finalName>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<target>1.8</target>
<source>1.8</source>
<encoding>UTF-8</encoding>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
</plugins>
</build>
</project>
4 changes: 2 additions & 2 deletions src/main/java/me/itsnathang/placeholders/Geolocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.UUID;

public class Geolocation extends PlaceholderExpansion implements Cleanable {

private final String VERSION = getClass().getPackage().getImplementationVersion();
private Map<UUID, LocationInfo> cache = new HashMap<>();

@Override
Expand All @@ -30,7 +30,7 @@ public String getPlugin() {

@Override
public String getVersion() {
return "1.1";
return VERSION;
}

@Override
Expand Down

0 comments on commit 0e34458

Please sign in to comment.