Skip to content

Commit

Permalink
Remove NMS modules and the reliance on craftbukkit
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaneyXYZ committed Oct 30, 2023
1 parent e7a88f3 commit d5b0182
Show file tree
Hide file tree
Showing 61 changed files with 20 additions and 1,329 deletions.
70 changes: 1 addition & 69 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,14 @@
# Credit to https://github.com/APDevTeam/Movecraft/actions for this
name: Maven Build

on:
push:
branches:
- main
- master
- five_o_o
pull_request:

jobs:
# Build 1.20.2 NMS
nms_version:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- name: Set up JDK 17 # 1.20.2 can only be built with Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Cache 1.20.2 Maven package
id: cacheWild
uses: actions/cache@v3
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.20.2-all
restore-keys: ${{ runner.os }}-spigot-1.20.2-all
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2_1.20.2
restore-keys: ${{ runner.os }}-m2_1.20.2

- 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.20.2 Spigot
id: wild
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Check 1.20.2 Spigot (Mojang)
id: wildMojang
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT-remapped-mojang.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Check 1.20.2 Spigot (Obf)
id: wildObf
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT-remapped-obf.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Build 1.20.2
if: steps.wild.outputs.sucess != 'true' || steps.wildMojang.outputs.sucess != 'true' || steps.wildObf.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.20.2 --compile craftbukkit --compile-if-changed


# Build RoyalCommands using Maven
build-rcmds:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
needs: nms_version

steps:
- name: Checkout RoyalCommands
Expand All @@ -69,25 +19,7 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'

- name: Cache 1.20.2 Maven package
id: cacheWild
uses: actions/cache@v3
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.20.2-all
restore-keys: ${{ runner.os }}-spigot-1.20.2-all

- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2_1.20.2
restore-keys: ${{ runner.os }}-m2_1.20.2
cache: maven

- name: Build RoyalCommands with Maven
env:
Expand Down
26 changes: 0 additions & 26 deletions modules/API/pom.xml

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions modules/NMS1_12_R1/pom.xml

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions modules/NMS1_13_R2/pom.xml

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions modules/NMS1_14_R1/pom.xml

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions modules/NMS1_17_R1/pom.xml

This file was deleted.

This file was deleted.

Loading

0 comments on commit d5b0182

Please sign in to comment.