fixes and features

- finished Maven implementation
- removed Ant build version auto-increment because of Maven
- added "send-tp-message-on-join" entry to config to enable/disable the "teleport-to-hub-on-join" message
- renamed CommonValues to PluginCache
This commit is contained in:
Lorenzo Dellacà
2020-06-25 20:45:26 +02:00
parent eb7feb4a87
commit 4fd71e0241
21 changed files with 152 additions and 112 deletions

48
pom.xml
View File

@@ -6,7 +6,13 @@
<groupId>net.mindoverflow.hubthat</groupId>
<artifactId>HubThat</artifactId>
<version>1.0-SNAPSHOT</version>
<version>10.1</version>
<scm>
<connection>scm:svn:http://127.0.0.1/dummy</connection>
<developerConnection>scm:svn:https://127.0.0.1/dummy</developerConnection>
<tag>HEAD</tag>
<url>http://127.0.0.1/dummy</url>
</scm>
<build>
<plugins>
<plugin>
@@ -18,12 +24,46 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>buildnumber</id>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<format>{0,number}</format>
<items>
<item>buildNumber</item>
</items>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<revisionOnScmFailure>unknownbuild</revisionOnScmFailure>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<!-- Filter for version name in properties -->
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>*.yml</include>
</includes>
</resource>
</resources>
</build>
<properties>
<maven.compiler.source>1.9</maven.compiler.source>
<maven.compiler.target>1.9</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<versionName>${project.version}</versionName>
</properties>
<repositories>
<!-- This adds the Spigot Maven repository to the build -->
@@ -38,7 +78,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<version>1.16.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>