try to fix auto version code

This commit is contained in:
Gabriele C 2015-11-26 19:32:40 +01:00
parent db67c77b33
commit 84c3b44f82
2 changed files with 6 additions and 6 deletions

View File

@ -141,19 +141,19 @@
</executions>
<configuration>
<includes>
<include>/target/**/AuthMe.java</include>
<include>target/classes/**/AuthMe.java</include>
</includes>
<replacements>
<replacement>
<token>>UNKNOWNVERSION</token>
<token>${project.version}</token>
<value>${project.version}</value>
</replacement>
<replacement>
<token>>BUILDNUMBER</token>
<token>${buildNumber}</token>
<value>${buildNumber}</value>
</replacement>
<replacement>
<token>>PLUGINAUTHORS</token>
<token>${pluginAuthors}</token>
<value>${pluginAuthors}</value>
</replacement>
</replacements>

View File

@ -62,11 +62,11 @@ public class AuthMe extends JavaPlugin {
/**
* Defines the current AuthMeReloaded version name.
*/
private static final String PLUGIN_VERSION_NAME = ">VERSION";
private static final String PLUGIN_VERSION_NAME = "${project.version}";
/**
* Defines the current AuthMeReloaded version code.
*/
private static final int PLUGIN_VERSION_CODE = Integer.parseInt(">BUILDNUMBER");
private static final int PLUGIN_VERSION_CODE = Integer.parseInt("${buildNumber}");
private static AuthMe plugin;
private static Server server;