Skip to content

Commit

Permalink
Adds support for 1.19.3. Plugin tests don't work. Abstractions in NMS…
Browse files Browse the repository at this point in the history
… common need abstracting.
  • Loading branch information
JorelAli committed Dec 7, 2022
1 parent 2640390 commit fa7985d
Show file tree
Hide file tree
Showing 37 changed files with 1,039 additions and 39 deletions.
2 changes: 1 addition & 1 deletion commandapi-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>dev.jorel</groupId>
<artifactId>commandapi</artifactId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>

<artifactId>commandapi-annotations</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion commandapi-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>commandapi</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>dev.jorel</groupId>
<artifactId>commandapi</artifactId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>

<artifactId>commandapi-kotlin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.13.1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.13.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.13/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.14.3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.14.4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.15/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.16.1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.16.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.16.4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.16.5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.17-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.17.1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.18.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.19-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion commandapi-nms/commandapi-1.19.1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1</version>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
129 changes: 129 additions & 0 deletions commandapi-nms/commandapi-1.19.3/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2018, 2021 Jorel Ali (Skepter) - MIT License Permission is
hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial portions
of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE. -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>commandapi-nms</artifactId>
<groupId>dev.jorel</groupId>
<version>8.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>commandapi-1.19.3</artifactId>

<properties>
<minecraft.mappings>1.19.3-R0.1-SNAPSHOT</minecraft.mappings>
<spigot.version>1.19.3-R0.1-SNAPSHOT</spigot.version>
</properties>

<repositories>
<repository>
<id>minecraft-libraries</id>
<url>https://libraries.minecraft.net</url>
</repository>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.io/repository/nms/</url>
</repository>
<repository>
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
</repositories>

<dependencies>
<!-- Spigot testing (for reflection checks) -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>${spigot.version}</version>
<scope>test</scope>
</dependency>
<!-- Spigot compilation -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>${spigot.version}</version>
<classifier>remapped-mojang</classifier>
<scope>provided</scope>
</dependency>

<!-- Libraries -->
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>${paper.version}</version>
<scope>provided</scope>
</dependency>

<!-- CommandAPI core -->
<dependency>
<groupId>dev.jorel</groupId>
<artifactId>commandapi-core</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>dev.jorel</groupId>
<artifactId>commandapi-nms-common</artifactId>
<version>${project.version}</version>
<classifier>mojang-mapped</classifier>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-obf</id>
<configuration>
<srgIn>org.spigotmc:minecraft-server:${minecraft.mappings}:txt:maps-mojang</srgIn>
<reverse>true</reverse>
<remappedDependencies>org.spigotmc:spigot:${minecraft.mappings}: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:${minecraft.mappings}:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:${minecraft.mappings}:jar:remapped-obf</remappedDependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit fa7985d

Please sign in to comment.