Compare commits

..

No commits in common. "6c7e3fb77d89fea2e905bc6583256e3b08149857" and "c4df9764d443a6500f1a719dabd14eb1b4940cba" have entirely different histories.

2 changed files with 4 additions and 42 deletions

View file

@ -16,17 +16,17 @@ jobs:
- name: Build for 1.21.1
run: mvn package -Dproject.minecraft.version=1.21.1 -Dproject.nms.version=v1_21_R1
run: mkdir artifact && mvn clean package && mv target/tweaks-*+1.21.1.jar artifact/
- name: Build for 1.21.3
run: mvn package -Dproject.minecraft.version=1.21.3 -Dproject.nms.version=v1_21_R2
run: find src \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/v1_21_R1/v1_21_R2/g" && mvn clean package -Dproject.minecraft.version=1.21.3 && mv target/tweaks-*+1.21.3.jar artifact/
- name: Build for 1.21.4
run: mvn package -Dproject.minecraft.version=1.21.4 -Dproject.nms.version=v1_21_R3
run: find src \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/v1_21_R2/v1_21_R3/g" && mvn clean package -Dproject.minecraft.version=1.21.4 && mv target/tweaks-*+1.21.4.jar artifact/
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
path: target
path: artifact

38
pom.xml
View file

@ -16,8 +16,6 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.nms.version>v1_21_R1</project.nms.version>
<project.minecraft.version>1.21.1</project.minecraft.version>
<project.spigot.version>${project.minecraft.version}-R0.1-SNAPSHOT</project.spigot.version>
</properties>
@ -31,42 +29,6 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>custom-nms-version</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<replace token="v1_21_R1" value="${project.nms.version}" dir="src/main">
<include name="**/*.java" />
</replace>
</target>
</configuration>
</execution>
<execution>
<id>cleanup-custom-nms-version</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<replace token="${project.nms.version}" value="v1_21_R1" dir="src/main">
<include name="**/*.java" />
</replace>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>