Skip to content

Commit

Permalink
Remove 1.16.5 (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 authored May 12, 2024
1 parent 65833e2 commit 7569351
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 664 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If applicable, add screenshots (or videos) to help explain your problem.
- Movecraft: [e.g. 8.0.0 alpha 6]
- Addons: [e.g. Movecraft-Combat v1.0.0, Movecraft-Repair v1.0.0, etc]
- Java [e.g. Adoptium JDK 13]
- Minecraft [e.g. 1.16.5]
- Minecraft [e.g. 1.20.6]

**Additional context**
Add any other context about the problem here.
41 changes: 1 addition & 40 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,6 @@ on:
- cron: '22 13 * * 6'

jobs:
# Build 1.16.5 NMS
v1_16_R3:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 16 # 1.16.5 can be built with Java 8 to Java 16
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '16'
- name: Cache 1.16.5 Maven package
id: cacheNether
uses: actions/cache@v3
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/
key: ${{ runner.os }}-v1_16_R3
restore-keys: ${{ runner.os }}-v1_16_R3
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_16_R3
restore-keys: ${{ runner.os }}-m2-v1_16_R3

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- name: Check 1.16.5
id: nether
run: test -f ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/craftbukkit-1.16.5-R0.1-SNAPSHOT.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- name: Build 1.16.5
if: steps.nether.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.16.5 --compile craftbukkit

# Build 1.18.2 NMS
v1_18_R2:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,7 +137,7 @@ jobs:
# Build Movecraft
build:
runs-on: ubuntu-latest
needs: [v1_16_R3, v1_18_R2, v1_19_R3, v1_20_R4]
needs: [v1_18_R2, v1_19_R3, v1_20_R4]

steps:
- name: Checkout Movecraft
Expand All @@ -186,12 +153,6 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Cache 1.16.5 Maven package
uses: actions/cache@v3
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/
key: ${{ runner.os }}-v1_16_R3
restore-keys: ${{ runner.os }}-v1_16_R3
- name: Cache 1.18.2 Maven package
uses: actions/cache@v3
with:
Expand Down
41 changes: 1 addition & 40 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,6 @@ on:
types: [created, prereleased]

jobs:
# Build 1.16.5 NMS
v1_16_R3:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 16 # 1.16.5 can be built with Java 8 to Java 16
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '16'
- name: Cache 1.16.5 Maven package
id: cacheNether
uses: actions/cache@v3
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/
key: ${{ runner.os }}-v1_16_R3
restore-keys: ${{ runner.os }}-v1_16_R3
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_16_R3
restore-keys: ${{ runner.os }}-m2-v1_16_R3

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- name: Check 1.16.5
id: nether
run: test -f ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/craftbukkit-1.16.5-R0.1-SNAPSHOT.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- name: Build 1.16.5
if: steps.nether.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.16.5 --compile craftbukkit

# Build 1.18.2 NMS
v1_18_R2:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -168,7 +135,7 @@ jobs:
# Build Movecraft
build:
runs-on: ubuntu-latest
needs: [v1_16_R3, v1_18_R2, v1_19_R3, v1_20_R4]
needs: [v1_18_R2, v1_19_R3, v1_20_R4]

steps:
- name: Checkout Movecraft
Expand All @@ -184,12 +151,6 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Cache 1.16.5 Maven package
uses: actions/cache@v3
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/
key: ${{ runner.os }}-v1_16_R3
restore-keys: ${{ runner.os }}-v1_16_R3
- name: Cache 1.18.2 Maven package
uses: actions/cache@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ Please check the [Wiki](https://github.com/APDevTeam/Movecraft/wiki) and [FAQ](h
[Discord](http://bit.ly/JoinAP-Dev)

## Development Environment
Movecraft uses multiple versions of the Spigot server software for legacy support. As such, you need to run [BuildTools](https://www.spigotmc.org/wiki/buildtools/) for several versions before building the plugin. It doesn't matter where you do this, but inside the Movecraft directory is probably a bad place. We recommend building Spigot 1.16.5 with Java 13, 1.18.2 and 1.19.4 with Java 17, and 1.20.6 with Java 21.
Movecraft uses multiple versions of the Spigot server software for legacy support. As such, you need to run [BuildTools](https://www.spigotmc.org/wiki/buildtools/) for several versions before building the plugin. It doesn't matter where you do this, but inside the Movecraft directory is probably a bad place. We recommend building Spigot 1.18.2 and 1.19.4 with Java 17, and 1.20.6 with Java 21.

```
java -jar BuildTools.jar --rev 1.16.5 --compile craftbukkit
java -jar BuildTools.jar --rev 1.18.2 --remapped
java -jar BuildTools.jar --rev 1.19.4 --remapped
java -jar BuildTools.jar --rev 1.20.6 --remapped
Expand Down
12 changes: 0 additions & 12 deletions modules/Movecraft/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
</repositories>

<dependencies>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-v1_16_r3</artifactId>
<version>${revision}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-v1_18_r2</artifactId>
Expand Down Expand Up @@ -171,12 +165,6 @@
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>net.countercraft:movecraft-v1_16_r3</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>net.countercraft:movecraft-v1_18_r2</artifact>
<includes>
Expand Down
2 changes: 1 addition & 1 deletion modules/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<version>1.18.2-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class AsyncChunk<T extends Chunk> {
String version = packageName.substring(packageName.lastIndexOf('.') + 1);
Constructor<?> temp = null;
try {
Class.forName("net.countercraft.movecraft.support.v1_16_R3.IAsyncChunk");
Class.forName("net.countercraft.movecraft.support.v1_18_R2.IAsyncChunk");
final Class<?> clazz = Class.forName("net.countercraft.movecraft.support." + version + ".IAsyncChunk");
if (AsyncChunk.class.isAssignableFrom(clazz)) {
temp = clazz.getConstructor(Chunk.class);
Expand Down
60 changes: 0 additions & 60 deletions modules/v1_16_R3/pom.xml

This file was deleted.

Loading

0 comments on commit 7569351

Please sign in to comment.