Skip to content

Commit

Permalink
Merge pull request #240 from brainsynder-Dev/MC-1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brainsynder-Dev authored Jun 15, 2023
2 parents 6892f57 + 9ea47de commit c2f14d3
Show file tree
Hide file tree
Showing 5 changed files with 556 additions and 3 deletions.
7 changes: 7 additions & 0 deletions DIST/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,12 @@
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>simplepets.brainsynder</groupId>
<artifactId>Version_1.20.1</artifactId>
<version>${module.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
170 changes: 170 additions & 0 deletions Version_1.20.1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>SimplePets</artifactId>
<groupId>simplepets.brainsynder</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<version>${module.version}</version>

<artifactId>Version_${minecraft.version}</artifactId>

<properties>
<minecraft.version>1.20.1</minecraft.version>

<current-module.version>v1_20_1</current-module.version>
<current-module.nms>v1_20_R1</current-module.nms>

<!-- Nothing should have to be changed below this point -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>


<spigot.version>${minecraft.version}-R0.1-SNAPSHOT</spigot.version>
<module.info>-${minecraft.version}</module.info>
</properties>

<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<minimizeJar>false</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>false</shadedArtifactAttached>
<outputDirectory>/tmp</outputDirectory>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>${groupId}.nms</pattern>
<shadedPattern>${groupId}.versions.${current-module.version}</shadedPattern>
</relocation>
<relocation>
<pattern>org.bukkit.craftbukkit.${spigot.nms}</pattern>
<shadedPattern>org.bukkit.craftbukkit.${current-module.nms}</shadedPattern>
</relocation>


<relocation>
<pattern>org.apache.commons</pattern>
<shadedPattern>${groupId}.internal.apache</shadedPattern>
</relocation>
<relocation>
<pattern>anvil.brainsynder</pattern>
<shadedPattern>${groupId}.internal.anvil</shadedPattern>
</relocation>
<relocation>
<pattern>com.jeff_media.updatechecker</pattern>
<shadedPattern>${groupId}.internal.updatechecker</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.5</version>
<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>
<resources>
<resource>
<directory>${project.parent.basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>${spigot.version}</version>
<classifier>remapped-mojang</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>simplepets.brainsynder</groupId>
<artifactId>API</artifactId>
<version>${module.version}</version>
</dependency>
<dependency>
<groupId>simplepets.brainsynder</groupId>
<artifactId>MAIN</artifactId>
<version>${module.version}</version>
<exclusions>
<exclusion>
<groupId>anvil.brainsynder</groupId>
<artifactId>anvilgui</artifactId>
</exclusion>
<exclusion>
<groupId>com.jeff_media</groupId>
<artifactId>SpigotUpdateChecker</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>simplepets.brainsynder</groupId>
<artifactId>NMS_Master</artifactId>
<version>${module.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit c2f14d3

Please sign in to comment.