Merge branch 'feature/no-compile-nms' into feature/clean-project

This commit is contained in:
Flowsqy 2022-07-24 04:38:37 +02:00
commit 09cbade7e9
19 changed files with 306 additions and 150 deletions

View File

@ -10,13 +10,11 @@ Maybe in future I will post an official API through github packages, but current
## Build ## Build
You need Maven and a jdk. You need Maven with Github access and a jdk.
If you don't know how to give Github access to maven, check [this](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-with-a-personal-access-token).
If you don't know how to create a personal token, check [this](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
- First, compile spigot with the BuildTools.jar and the '--remapped' argument. - Use ``mvn clean install`` at the root of the project to build ShopChest artefact.
You need to do it for a lot of minecraft version, starting from 1.17.
To get them all, just do the next step, an error message will tell you what minecraft version is missing.
(I will try to suppress this step in future)
- Use ``mvn clean package`` or ``mvn clean install`` at the root of the project to build ShopChest artefact.
- After the build succeeded, the ShopChest.jar is found in the ``/plugin/target/`` folder. - After the build succeeded, the ShopChest.jar is found in the ``/plugin/target/`` folder.
## Issues ## Issues

20
nms/all/nms-assembly.xml Normal file
View File

@ -0,0 +1,20 @@
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/ASSEMBLY/2.1.1"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.1 http://maven.apache.org/xsd/assembly-2.1.1.xsd">
<id>nms-assembly</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>de.epiceric:shopchest-nms-*</include>
</includes>
<binaries>
<unpack>true</unpack>
</binaries>
</moduleSet>
</moduleSets>
</assembly>

78
nms/all/pom.xml Normal file
View File

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>de.epiceric</groupId> <!-- Needed to be usable without parent -->
<artifactId>shopchest-nms-all</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<properties>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>
<!-- Ensure build order for assembly -->
<dependencies>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-interface</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-reflection</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_R1</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_R2</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R1</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R2</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_19_R1</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>nms-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>nms-assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

123
nms/pom.xml Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>shopchest-parent</artifactId>
<groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>shopchest-nms</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<modules>
<module>interface</module>
<module>reflection</module>
<module>v1_17_R1</module>
<module>v1_17_R2</module>
<module>v1_18_R1</module>
<module>v1_18_R2</module>
<module>v1_19_R1</module>
<module>all</module>
</modules>
<properties>
<!-- Default Spigot version for nms implementation. Must be overridden -->
<spigot.version>defaultVersion</spigot.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-interface</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-reflection</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_R1</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_R2</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R1</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R2</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_19_R1</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-obf</id>
<configuration>
<srgIn>org.spigotmc:minecraft-server:${spigot.version}:txt:maps-mojang</srgIn>
<reverse>true</reverse>
<remappedDependencies>org.spigotmc:spigot:${spigot.version}:jar:remapped-mojang
</remappedDependencies>
<remappedArtifactAttached>true</remappedArtifactAttached>
<remappedClassifierName>remapped-obf</remappedClassifierName>
</configuration>
</execution>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-spigot</id>
<configuration>
<inputFile>
${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar
</inputFile>
<srgIn>org.spigotmc:minecraft-server:${spigot.version}:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:${spigot.version}:jar:remapped-obf
</remappedDependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

View File

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>shopchest-nms-v1_17_1_R1</artifactId> <artifactId>shopchest-nms-v1_17_R2</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<properties> <properties>

View File

@ -1,4 +1,4 @@
package de.epiceric.shopchest.nms.v1_17_1_R1; package de.epiceric.shopchest.nms.v1_17_R2;
import de.epiceric.shopchest.nms.FakeArmorStand; import de.epiceric.shopchest.nms.FakeArmorStand;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;

View File

@ -1,4 +1,4 @@
package de.epiceric.shopchest.nms.v1_17_1_R1; package de.epiceric.shopchest.nms.v1_17_R2;
import de.epiceric.shopchest.nms.FakeEntity; import de.epiceric.shopchest.nms.FakeEntity;
import net.minecraft.network.protocol.Packet; import net.minecraft.network.protocol.Packet;

View File

@ -1,4 +1,4 @@
package de.epiceric.shopchest.nms.v1_17_1_R1; package de.epiceric.shopchest.nms.v1_17_R2;
import de.epiceric.shopchest.nms.FakeItem; import de.epiceric.shopchest.nms.FakeItem;
import net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket; import net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket;

View File

@ -1,4 +1,4 @@
package de.epiceric.shopchest.nms.v1_17_1_R1; package de.epiceric.shopchest.nms.v1_17_R2;
import de.epiceric.shopchest.nms.FakeArmorStand; import de.epiceric.shopchest.nms.FakeArmorStand;
import de.epiceric.shopchest.nms.FakeItem; import de.epiceric.shopchest.nms.FakeItem;

View File

@ -1,4 +1,4 @@
package de.epiceric.shopchest.nms.v1_17_1_R1; package de.epiceric.shopchest.nms.v1_17_R2;
import de.epiceric.shopchest.nms.TextComponentHelper; import de.epiceric.shopchest.nms.TextComponentHelper;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;

View File

@ -1,19 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>shopchest-nms-v1_18_R1</artifactId> <artifactId>shopchest-nms-v1_18_R1</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<properties> <properties>
<spigot.version>1.18-R0.1-SNAPSHOT</spigot.version> <spigot.version>1.18-R0.1-SNAPSHOT</spigot.version>
</properties> </properties>

View File

@ -1,19 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>shopchest-nms-v1_18_R2</artifactId> <artifactId>shopchest-nms-v1_18_R2</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<properties> <properties>
<spigot.version>1.18.2-R0.1-SNAPSHOT</spigot.version> <spigot.version>1.18.2-R0.1-SNAPSHOT</spigot.version>
</properties> </properties>

View File

@ -1,19 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shopchest-parent</artifactId> <artifactId>shopchest-nms</artifactId>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<version>1.15.0-SNAPSHOT</version> <version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>shopchest-nms-v1_19_R1</artifactId> <artifactId>shopchest-nms-v1_19_R1</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<properties> <properties>
<spigot.version>1.19-R0.1-SNAPSHOT</spigot.version> <spigot.version>1.19-R0.1-SNAPSHOT</spigot.version>
</properties> </properties>

View File

@ -49,31 +49,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-interface</artifactId> <artifactId>shopchest-nms-all</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-reflection</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_R1</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_1_R1</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R1</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R2</artifactId>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_19_R1</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>

View File

@ -61,7 +61,7 @@ public class PlatformLoader {
case "acd6e6c27e5a0a9440afba70a96c27c9" -> // 1.17 (v1_17_R1) case "acd6e6c27e5a0a9440afba70a96c27c9" -> // 1.17 (v1_17_R1)
new de.epiceric.shopchest.nms.v1_17_R1.PlatformImpl(); new de.epiceric.shopchest.nms.v1_17_R1.PlatformImpl();
case "f0e3dfc7390de285a4693518dd5bd126" -> // 1.17.1 (v1_17_R1) case "f0e3dfc7390de285a4693518dd5bd126" -> // 1.17.1 (v1_17_R1)
new de.epiceric.shopchest.nms.v1_17_1_R1.PlatformImpl(); new de.epiceric.shopchest.nms.v1_17_R2.PlatformImpl();
case "9e9fe6961a80f3e586c25601590b51ec", "20b026e774dbf715e40a0b2afe114792" -> // 1.18 ; 1.18.1 (v1_18_R1) case "9e9fe6961a80f3e586c25601590b51ec", "20b026e774dbf715e40a0b2afe114792" -> // 1.18 ; 1.18.1 (v1_18_R1)
new de.epiceric.shopchest.nms.v1_18_R1.PlatformImpl(); new de.epiceric.shopchest.nms.v1_18_R1.PlatformImpl();
case "eaeedbff51b16ead3170906872fda334" -> // 1.18.2 (v1_18_R2) case "eaeedbff51b16ead3170906872fda334" -> // 1.18.2 (v1_18_R2)

119
pom.xml
View File

@ -12,16 +12,38 @@
<modules> <modules>
<module>common</module> <module>common</module>
<module>plugin</module> <module>plugin</module>
<module>nms/interface</module>
<module>nms/reflection</module>
<module>nms/v1_17_R1</module>
<module>nms/v1_17_1_R1</module>
<module>nms/v1_18_R1</module>
<module>nms/v1_18_R2</module>
<module>nms/v1_19_R1</module>
<module>external</module> <module>external</module>
</modules> </modules>
<profiles>
<profile>
<id>build-nms</id>
<activation>
<property>
<name>buildNMS</name>
</property>
</activation>
<modules>
<module>nms</module>
</modules>
</profile>
<profile>
<id>import-nms</id>
<activation>
<property>
<name>!buildNMS</name>
</property>
</activation>
<repositories>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Flowsqy/ShopChest</url>
</repository>
</repositories>
</profile>
</profiles>
<name>ShopChest</name> <name>ShopChest</name>
<url>https://www.spigotmc.org/resources/shopchest.11431/</url> <url>https://www.spigotmc.org/resources/shopchest.11431/</url>
<description>A Bukkit plugin letting players create custom chest shops.</description> <description>A Bukkit plugin letting players create custom chest shops.</description>
@ -45,13 +67,10 @@
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>codemc-releases</id> <id>github</id>
<url>https://repo.codemc.io/repository/maven-releases/</url> <name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Flowsqy/ShopChest</url>
</repository> </repository>
<snapshotRepository>
<id>codemc-snapshots</id>
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement> </distributionManagement>
<properties> <properties>
@ -63,11 +82,11 @@
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<!-- Avoid the deployment of all artifact -->
<maven.deploy.skip>true</maven.deploy.skip>
<!-- Name of the plugin for the final jar --> <!-- Name of the plugin for the final jar -->
<buildName>ShopChest</buildName> <buildName>ShopChest</buildName>
<!-- Default Spigot version for nms implementation. Must be overridden -->
<spigot.version>defaultVersion</spigot.version>
</properties> </properties>
<pluginRepositories> <pluginRepositories>
@ -161,40 +180,16 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- NMS --> <!-- NMS -->
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-all</artifactId>
<version>1.0.0</version>
</dependency>
<dependency> <dependency>
<groupId>de.epiceric</groupId> <groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-interface</artifactId> <artifactId>shopchest-nms-interface</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
</dependency> <scope>provided</scope>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-reflection</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_R1</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_17_1_R1</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R1</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_18_R2</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>shopchest-nms-v1_19_R1</artifactId>
<version>1.0.0</version>
</dependency> </dependency>
<!-- External plugins support --> <!-- External plugins support -->
<dependency> <dependency>
@ -325,34 +320,10 @@
<groupId>net.md-5</groupId> <groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId> <artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.4</version> <version>1.2.4</version>
<executions> </plugin>
<execution> <plugin>
<phase>package</phase> <artifactId>maven-assembly-plugin</artifactId>
<goals> <version>3.3.0</version>
<goal>remap</goal>
</goals>
<id>remap-obf</id>
<configuration>
<srgIn>org.spigotmc:minecraft-server:${spigot.version}:txt:maps-mojang</srgIn>
<reverse>true</reverse>
<remappedDependencies>org.spigotmc:spigot:${spigot.version}:jar:remapped-mojang</remappedDependencies>
<remappedArtifactAttached>true</remappedArtifactAttached>
<remappedClassifierName>remapped-obf</remappedClassifierName>
</configuration>
</execution>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-spigot</id>
<configuration>
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile>
<srgIn>org.spigotmc:minecraft-server:${spigot.version}:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:${spigot.version}:jar:remapped-obf</remappedDependencies>
</configuration>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>