diff --git a/.gitignore b/.gitignore
index 24d67e9b..55aa6361 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
# TFM excludes
/lib
build.properties
+git.properties
# Netbeans excludes
/nbproject/private
diff --git a/pom.xml b/pom.xml
index c3e51255..cc90811e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,14 +4,14 @@
me.totalfreedom
totalfreedom
- 5.0
+ 5.2
jar
UTF-8
${project.version}
- Electrum
-
+ God
+ ${maven.buildnumber}
${maven.build.timestamp}
${buildAuthor}
${buildHead}
@@ -60,7 +60,7 @@
sk89q-snapshots
- http://maven.sk89q.com/artifactory/repo
+ http://maven.sk89q.com/artifactory/repo/
@@ -159,9 +159,9 @@
net.dv8tion
JDA
- 3.5.1_339-withDependencies
+ JDA-3.6.0_354-withDependencies
system
- ${project.basedir}/lib/JDA-3.5.1_339-withDependencies.jar
+ ${project.basedir}/lib/JDA-3.6.0_354-withDependencies.jar
@@ -192,6 +192,7 @@
+ org.apache.maven.plugins
maven-antrun-plugin
1.8
@@ -199,8 +200,11 @@
initialize
-
+
+
+
+
@@ -209,8 +213,10 @@
+
+
org.codehaus.mojo
@@ -224,7 +230,7 @@
- ${basedir}/build.properties
+ ${basedir}/src/main/resources/build.properties
@@ -254,26 +260,47 @@
- com.lukegb.mojo
- gitdescribe-maven-plugin
- 3.0
+ pl.project13.maven
+ git-commit-id-plugin
+ 2.2.4
- git-describe
- initialize
+ get-the-git-infos
- gitdescribe
+ revision
-
- buildHead
-
- --tags
- --always
- HEAD
-
-
+
+
+ validate-the-git-infos
+
+ validateRevision
+
+ package
+
+ ${project.basedir}/.git
+ git
+ yyyy-MM-dd HH:mm:ss
+ false
+ true
+ ${basedir}/src/main/resources/git.properties
+ properties
+ false
+ false
+
+ git.build.time
+ git.commit.id
+ git.commit.id.abbrev
+
+
+ false
+ false
+ 7
+ -dirty
+ *
+
+
@@ -292,42 +319,13 @@
maven.buildnumber
- ${basedir}/build.properties
+ ${basedir}/src/main/resources/build.properties
{0,number,#}
- buildNumber
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 2.3.1
-
- target/generated-sources
-
-
-
-
-
- org.apache.maven.plugins
- maven-shade-plugin
- 1.4
-
-
- package
-
- shade
-
-
- target/${project.name}.jar
- false
-
-
-
-
@@ -353,4 +351,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java b/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java
index cf0b6375..d6781dfb 100644
--- a/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java
+++ b/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java
@@ -283,18 +283,24 @@ public class TotalFreedomMod extends AeroPlugin
try
{
final Properties props;
+ final Properties gitprops;
try (InputStream in = plugin.getResource("build.properties"))
{
props = new Properties();
props.load(in);
}
+ try (InputStream in = plugin.getResource("git.properties"))
+ {
+ gitprops = new Properties();
+ gitprops.load(in);
+ }
- author = props.getProperty("program.build.author", "unknown");
- codename = props.getProperty("program.build.codename", "unknown");
- version = props.getProperty("program.build.version", "unknown");
- number = props.getProperty("program.build.number", "1");
- date = props.getProperty("program.build.date", "unknown");
- head = props.getProperty("program.build.head", "unknown");
+ author = props.getProperty("buildAuthor", "unknown");
+ codename = props.getProperty("buildCodeName", "unknown");
+ version = props.getProperty("buildVersion", pluginVersion);
+ number = props.getProperty("buildNumber", "1");
+ date = gitprops.getProperty("git.build.time", "unknown");
+ head = gitprops.getProperty("git.commit.id.abbrev", "unknown");
}
catch (Exception ex)
{
diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java
index d3c721af..384d46ce 100644
--- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java
+++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java
@@ -52,7 +52,7 @@ public class Command_totalfreedommod extends FreedomCommand
msg("Running on " + ConfigEntry.SERVER_NAME.getString() + ".", ChatColor.GOLD);
msg("Created by Madgeek1450 and Prozza.", ChatColor.GOLD);
msg(String.format("Version "
- + ChatColor.BLUE + "%s %s.%s " + ChatColor.GOLD + "("
+ + ChatColor.BLUE + "%s - %s Build %s " + ChatColor.GOLD + "("
+ ChatColor.BLUE + "%s" + ChatColor.GOLD + ")",
build.codename,
build.version,