diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index b255a10..2627117 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -16,13 +16,13 @@ jobs: - 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 - 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 - 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 diff --git a/pom.xml b/pom.xml index 25f6c51..ec5f7fd 100644 --- a/pom.xml +++ b/pom.xml @@ -32,30 +32,40 @@ - com.google.code.maven-replacer-plugin - replacer - 1.5.3 + org.apache.maven.plugins + maven-antrun-plugin + 3.1.0 + custom-nms-version generate-sources - replace + run + + + + + + + + + + cleanup-custom-nms-version + package + + run + + + + + + + + - - - ${basedir}src/main/java/**/*.java - - - - v1_21_R1 - ${project.nms.version} - - - - org.apache.maven.plugins maven-shade-plugin