diff --git a/bukkit/src/main/resources/plugin.yml b/bukkit/src/main/resources/plugin.yml index 842905d3..08e3412a 100644 --- a/bukkit/src/main/resources/plugin.yml +++ b/bukkit/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ # project informations for Bukkit in order to register our plugin with all it components # ${-} are variables from Maven (pom.xml) which will be replaced after the build name: ${project.parent.name} -version: ${project.version} +version: ${project.version}-git${git.commit.id} main: ${project.groupId}.${project.artifactId}.${project.name} # meta informations for plugin managers diff --git a/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java b/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java index fd5c6905..a01f2143 100644 --- a/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java +++ b/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java @@ -43,8 +43,6 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin(this); core.load(); if (!core.setupDatabase()) { diff --git a/bungee/src/main/resources/bungee.yml b/bungee/src/main/resources/bungee.yml index 6d18251d..77e0627b 100644 --- a/bungee/src/main/resources/bungee.yml +++ b/bungee/src/main/resources/bungee.yml @@ -5,7 +5,7 @@ name: ${project.parent.name} # ${-} will be automatically replaced by Maven main: ${project.groupId}.${project.artifactId}.${project.name} -version: ${project.version} +version: ${project.version}-git${git.commit.id} author: games647, http://github.com/games647/FastLogin/graphs/contributors softDepends: diff --git a/pom.xml b/pom.xml index 9beaa402..7c5ab635 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ UTF-8 ${basedir}/target + Unknown @@ -48,7 +49,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.6.0 + 3.6.1 1.8 1.8 @@ -56,6 +57,23 @@ true + + + pl.project13.maven + git-commit-id-plugin + 2.2.1 + + false + + + + get-the-git-infos + + revision + + + +