This commit is contained in:
parent
6c85ffbff5
commit
af906ef265
2 changed files with 29 additions and 19 deletions
|
@ -16,13 +16,13 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
- name: Build for 1.21.1
|
- name: Build for 1.21.1
|
||||||
run: mkdir artifact && mvn clean package && mv target/tweaks-*+1.21.1.jar artifact/
|
run: mvn package -Dproject.minecraft.version=1.21.1 -Dproject.nms.version=v1_21_R1
|
||||||
|
|
||||||
- name: Build for 1.21.3
|
- name: Build for 1.21.3
|
||||||
run: mvn clean package -Dproject.minecraft.version=1.21.3 -Dproject.nms.version=v1_21_R2 && mv target/tweaks-*+1.21.3.jar artifact/
|
run: mvn package -Dproject.minecraft.version=1.21.3 -Dproject.nms.version=v1_21_R2
|
||||||
|
|
||||||
- name: Build for 1.21.4
|
- name: Build for 1.21.4
|
||||||
run: mvn clean package -Dproject.minecraft.version=1.21.4 -Dproject.nms.version=v1_21_R3 && mv target/tweaks-*+1.21.4.jar artifact/
|
run: mvn package -Dproject.minecraft.version=1.21.4 -Dproject.nms.version=v1_21_R3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
42
pom.xml
42
pom.xml
|
@ -32,30 +32,40 @@
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>replacer</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>1.5.3</version>
|
<version>3.1.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>custom-nms-version</id>
|
||||||
<phase>generate-sources</phase>
|
<phase>generate-sources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>replace</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</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>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
|
||||||
<includes>
|
|
||||||
<include>${basedir}src/main/java/**/*.java</include>
|
|
||||||
</includes>
|
|
||||||
<replacements>
|
|
||||||
<replacement>
|
|
||||||
<token>v1_21_R1</token>
|
|
||||||
<value>${project.nms.version}</value>
|
|
||||||
</replacement>
|
|
||||||
</replacements>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
|
Loading…
Reference in a new issue