forked from TuxCoding/FastLogin
Add commit id to the version
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# project informations for Bukkit in order to register our plugin with all it components
|
# 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
|
# ${-} are variables from Maven (pom.xml) which will be replaced after the build
|
||||||
name: ${project.parent.name}
|
name: ${project.parent.name}
|
||||||
version: ${project.version}
|
version: ${project.version}-git${git.commit.id}
|
||||||
main: ${project.groupId}.${project.artifactId}.${project.name}
|
main: ${project.groupId}.${project.artifactId}.${project.name}
|
||||||
|
|
||||||
# meta informations for plugin managers
|
# meta informations for plugin managers
|
||||||
|
@ -43,8 +43,6 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
System.out.println(this.getDescription());
|
|
||||||
|
|
||||||
core = new FastLoginCore<>(this);
|
core = new FastLoginCore<>(this);
|
||||||
core.load();
|
core.load();
|
||||||
if (!core.setupDatabase()) {
|
if (!core.setupDatabase()) {
|
||||||
|
@ -5,7 +5,7 @@ name: ${project.parent.name}
|
|||||||
# ${-} will be automatically replaced by Maven
|
# ${-} will be automatically replaced by Maven
|
||||||
main: ${project.groupId}.${project.artifactId}.${project.name}
|
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
|
author: games647, http://github.com/games647/FastLogin/graphs/contributors
|
||||||
|
|
||||||
softDepends:
|
softDepends:
|
||||||
|
20
pom.xml
20
pom.xml
@ -19,6 +19,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<!--Possibility to deploy directly to the plugins folder-->
|
<!--Possibility to deploy directly to the plugins folder-->
|
||||||
<outputDir>${basedir}/target</outputDir>
|
<outputDir>${basedir}/target</outputDir>
|
||||||
|
<git.commit.id>Unknown</git.commit.id>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
@ -48,7 +49,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.0</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@ -56,6 +57,23 @@
|
|||||||
<showDeprecation>true</showDeprecation>
|
<showDeprecation>true</showDeprecation>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>pl.project13.maven</groupId>
|
||||||
|
<artifactId>git-commit-id-plugin</artifactId>
|
||||||
|
<version>2.2.1</version>
|
||||||
|
<configuration>
|
||||||
|
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>get-the-git-infos</id>
|
||||||
|
<goals>
|
||||||
|
<goal>revision</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
|
Reference in New Issue
Block a user