mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2025-01-06 00:18:34 +01:00
Release Plugin
This commit is contained in:
parent
6fca1a2a72
commit
96a23c3d7e
15
pom.xml
15
pom.xml
@ -6,13 +6,20 @@
|
||||
|
||||
<groupId>com.jamesdpeters.chests</groupId>
|
||||
<artifactId>ChestsPlusPlus</artifactId>
|
||||
<version>1.15 v1.3</version>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:JamesPeters98/ChestsPlusPlus.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:JamesPeters98/ChestsPlusPlus.git</developerConnection>
|
||||
<url>https://github.com/JamesPeters98/ChestsPlusPlus</url>
|
||||
<tag>@{project.version}</tag>
|
||||
</scm>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigotmc-repo</id>
|
||||
@ -144,6 +151,12 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<version>3.0.0-M1</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
<!--Tell maven to enable resource filtering so we can use macros like '${project.version}' inside of our plugin.yml-->
|
||||
|
21
release.properties
Normal file
21
release.properties
Normal file
@ -0,0 +1,21 @@
|
||||
#release configuration
|
||||
#Mon Apr 27 14:24:53 BST 2020
|
||||
scm.commentPrefix=[maven-release-plugin]
|
||||
project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.url=https\://github.com/JamesPeters98/ChestsPlusPlus
|
||||
exec.pomFileName=pom.xml
|
||||
pushChanges=true
|
||||
releaseStrategyId=default
|
||||
remoteTagging=true
|
||||
scm.branchCommitComment=@{prefix} prepare branch @{releaseLabel}
|
||||
projectVersionPolicyId=default
|
||||
scm.url=scm\:git\:git@github.com\:JamesPeters98/ChestsPlusPlus.git
|
||||
scm.tagNameFormat=@{project.artifactId}-@{project.version}
|
||||
preparationGoals=clean verify
|
||||
scm.releaseCommitComment=@{prefix} prepare release @{releaseLabel}
|
||||
exec.snapshotReleasePluginAllowed=false
|
||||
project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.developerConnection=scm\:git\:git@github.com\:JamesPeters98/ChestsPlusPlus.git
|
||||
project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.tag=@{project.version}
|
||||
scm.developmentCommitComment=@{prefix} prepare for next development iteration
|
||||
scm.rollbackCommitComment=@{prefix} rollback the release of @{releaseLabel}
|
||||
project.scm.com.jamesdpeters.chests\:ChestsPlusPlus.connection=scm\:git\:git@github.com\:JamesPeters98/ChestsPlusPlus.git
|
||||
completedPhase=check-poms
|
@ -51,6 +51,7 @@ public class ChestsPlusPlus extends JavaPlugin {
|
||||
ConfigurationSerialization.registerClass(InventoryStorage.class, "InventoryStorage");
|
||||
}
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
@Override
|
||||
public void onEnable() {
|
||||
int pluginId = 7166;
|
||||
@ -70,7 +71,10 @@ public class ChestsPlusPlus extends JavaPlugin {
|
||||
INVENTORY_MANAGER = new InventoryManager(this);
|
||||
INVENTORY_MANAGER.init();
|
||||
|
||||
if(Settings.isUpdateCheckEnabled()) {
|
||||
boolean isDev = BuildConstants.VERSION.contains("DEV");
|
||||
if(isDev) getLogger().warning("You are currently running a Dev build - update checker disabled! Build: "+BuildConstants.VERSION);
|
||||
|
||||
if(Settings.isUpdateCheckEnabled() && !isDev) {
|
||||
String SPIGOT_URL = "https://www.spigotmc.org/resources/chests-chest-linking-hopper-filtering-remote-chests-menus.71355/";
|
||||
UpdateCheck updateChecker = UpdateCheck
|
||||
.of(this)
|
||||
|
Loading…
Reference in New Issue
Block a user