Skip to content

Commit

Permalink
Add support for 1_19_R2 to 1_21_R1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan committed Jul 19, 2024
1 parent 087c7ef commit 9c300c5
Show file tree
Hide file tree
Showing 215 changed files with 17,332 additions and 12 deletions.
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
<version>3.0.7</version>
<packaging>pom</packaging>

<distributionManagement>
Expand All @@ -17,6 +17,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<specialsource.version>2.0.3</specialsource.version>
</properties>

<repositories>
Expand Down Expand Up @@ -92,5 +93,12 @@
<module>vcompat-1_18_R1</module>
<module>vcompat-1_18_R2</module>
<module>vcompat-1_19_R1</module>
<module>vcompat-1_19_R2</module>
<module>vcompat-1_19_R3</module>
<module>vcompat-1_20_R1</module>
<module>vcompat-1_20_R2</module>
<module>vcompat-1_20_R3</module>
<module>vcompat-1_20_R4</module>
<module>vcompat-1_21_R1</module>
</modules>
</project>
103 changes: 103 additions & 0 deletions pom.xml.versionsBackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
<packaging>pom</packaging>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub OWNER Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SourceWriters/vCompat</url>
</repository>
</distributionManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>spigot</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/public/</url>
</repository>
<repository>
<id>minecraft-libraries</id>
<url>https://libraries.minecraft.net</url>
</repository>
</repositories>

<dependencies>

<!-- Minecraft -->

<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.25</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
</exclusion>
<exclusion>
<artifactId>gson</artifactId>
<groupId>com.google.code.gson</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>vcompat-api</module>
<module>vcompat-core</module>
<module>vcompat-legacy</module>
<module>vcompat-1_17_R1</module>
<module>vcompat-1_18_R1</module>
<module>vcompat-1_18_R2</module>
<module>vcompat-1_19_R1</module>
<module>vcompat-1_19_R2</module>
<module>vcompat-1_19_R3</module>
<module>vcompat-1_20_R1</module>
<module>vcompat-1_20_R2</module>
<module>vcompat-1_20_R3</module>
<module>vcompat-1_20_R4</module>
<module>vcompat-1_21_R1</module>
</modules>
</project>
2 changes: 2 additions & 0 deletions scripts/data/mappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
1.18.1
1.18.2
1.19
1.20
1.21
7 changes: 7 additions & 0 deletions scripts/data/servers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@
1.18.1
1.18.2
1.19
1.19.3
1.19.4
1.20.1
1.20.2
1.20.4
1.20.6
1.21
7 changes: 5 additions & 2 deletions vcompat-1_17_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
<version>3.0.7</version>
</parent>
<artifactId>vcompat-1_17_R1</artifactId>

Expand Down Expand Up @@ -37,7 +37,10 @@
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.2</version>
<version>${specialsource.version}</version>
<configuration>
<useProjectDependencies>false</useProjectDependencies>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand Down
73 changes: 73 additions & 0 deletions vcompat-1_17_R1/pom.xml.versionsBackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
</parent>
<artifactId>vcompat-1_17_R1</artifactId>

<properties>
<mapping.libPath>${project.basedir}/../libraries/mapping</mapping.libPath>
<spigot.libPath>${project.basedir}/../libraries/spigot</spigot.libPath>
<minecraft.version>1.17.1</minecraft.version>
</properties>

<dependencies>
<dependency>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-api</artifactId>
<version>${project.parent.version}</version>
<scope>provided</scope>
</dependency>

<!-- Minecraft -->

<dependency>
<groupId>spigot</groupId>
<artifactId>remapped</artifactId>
<version>0.1</version>
<scope>system</scope>
<systemPath>${spigot.libPath}/spigot-${minecraft.version}.jar</systemPath>
</dependency>
</dependencies>

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

</project>
7 changes: 5 additions & 2 deletions vcompat-1_18_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
<version>3.0.7</version>
</parent>
<artifactId>vcompat-1_18_R1</artifactId>

Expand Down Expand Up @@ -63,7 +63,10 @@
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.2</version>
<version>${specialsource.version}</version>
<configuration>
<useProjectDependencies>false</useProjectDependencies>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand Down
98 changes: 98 additions & 0 deletions vcompat-1_18_R1/pom.xml.versionsBackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
</parent>
<artifactId>vcompat-1_18_R1</artifactId>

<properties>
<mapping.libPath>${project.basedir}/../libraries/mapping</mapping.libPath>
<spigot.libPath>${project.basedir}/../libraries/spigot</spigot.libPath>
<minecraft.version>1.18.1</minecraft.version>
</properties>

<repositories>
<repository>
<id>minecraft-libraries</id>
<name>Minecraft Libraries</name>
<url>https://libraries.minecraft.net</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-api</artifactId>
<version>${project.parent.version}</version>
<scope>provided</scope>
</dependency>

<!-- Minecraft -->

<dependency>
<groupId>spigot</groupId>
<artifactId>remapped</artifactId>
<version>0.1</version>
<scope>system</scope>
<systemPath>${spigot.libPath}/spigot-${minecraft.version}.jar</systemPath>
</dependency>
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil</artifactId>
<version>8.5.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>datafixerupper</artifactId>
<version>1.0.20</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<version>2.12.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-obf</id>
<configuration>
<srgIn>org.spigotmc:minecraft-server:${minecraft.version}-R0.1-SNAPSHOT:txt:maps-mojang</srgIn>
<reverse>true</reverse>
<remappedDependencies>org.spigotmc:spigot:${minecraft.version}-R0.1-SNAPSHOT: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.version}-R0.1-SNAPSHOT:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:${minecraft.version}-R0.1-SNAPSHOT:jar:remapped-obf</remappedDependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
7 changes: 5 additions & 2 deletions vcompat-1_18_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat-parent</artifactId>
<version>3.0.6</version>
<version>3.0.7</version>
</parent>
<artifactId>vcompat-1_18_R2</artifactId>

Expand Down Expand Up @@ -69,7 +69,10 @@
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.2</version>
<version>${specialsource.version}</version>
<configuration>
<useProjectDependencies>false</useProjectDependencies>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand Down
Loading

0 comments on commit 9c300c5

Please sign in to comment.