Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Yatopia 2 Electric Boogaloo [Yatopia Reforged] #339

Merged
merged 95 commits into from
Jan 21, 2021
Merged
Show file tree
Hide file tree
Changes from 94 commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
45bba72
Init Reforged
duplexsystem Jan 17, 2021
4a7e7cc
Init Submodules
duplexsystem Jan 17, 2021
316dce5
Clean Up
duplexsystem Jan 17, 2021
c4ccdb8
Re Add removed
duplexsystem Jan 18, 2021
58ccf6a
Try fix github actions
duplexsystem Jan 18, 2021
64c8eae
Don't clone unnecessary submodules
duplexsystem Jan 18, 2021
0d663ad
fix build?
duplexsystem Jan 18, 2021
ddb8248
remove pom
duplexsystem Jan 18, 2021
14c604a
more clean up
duplexsystem Jan 18, 2021
6881c78
fix build
duplexsystem Jan 18, 2021
aee8c20
caching should work now
duplexsystem Jan 18, 2021
b097db1
fix java 15
duplexsystem Jan 18, 2021
2a0a10e
gradle cache
duplexsystem Jan 18, 2021
0872062
Speed up gradle
duplexsystem Jan 18, 2021
1cdb039
correct caches
duplexsystem Jan 18, 2021
7b47473
thread paperclip
duplexsystem Jan 18, 2021
b198853
fix build
duplexsystem Jan 18, 2021
89c281e
fix gradle cache
duplexsystem Jan 18, 2021
8b71464
fix maven cache restore
duplexsystem Jan 18, 2021
2365d4a
maybe I shouldn't be editing this in text editor
duplexsystem Jan 18, 2021
952d0cc
remove restore key
duplexsystem Jan 18, 2021
200d12d
do daemon for paperclip
duplexsystem Jan 18, 2021
76138f5
more threading?
duplexsystem Jan 18, 2021
92e6f8e
try making paperclip faster
duplexsystem Jan 18, 2021
75a567a
bad idea
duplexsystem Jan 18, 2021
a2202a8
Java 8
duplexsystem Jan 18, 2021
cb1a095
add java version to gradle cache
duplexsystem Jan 18, 2021
22ae125
try to fix stability issues
duplexsystem Jan 18, 2021
77d27b0
remove that
duplexsystem Jan 18, 2021
8058bb3
might fix
duplexsystem Jan 18, 2021
ebc98ab
fix 2
duplexsystem Jan 18, 2021
547d428
this is a very strange bug
duplexsystem Jan 18, 2021
9323f69
fix strange fix to strange bug
duplexsystem Jan 18, 2021
7993785
more debug
duplexsystem Jan 18, 2021
519c0fa
more debug
duplexsystem Jan 18, 2021
052bcec
Merge remote-tracking branch 'origin/dev/reforged' into dev/reforged
duplexsystem Jan 18, 2021
320e061
potentially fix bug
duplexsystem Jan 18, 2021
26ab7d2
opt imports
duplexsystem Jan 18, 2021
ac52d47
Suppress warning
duplexsystem Jan 18, 2021
3900f17
Ignore my previous comment
duplexsystem Jan 18, 2021
fd527fb
Patch Credits
duplexsystem Jan 18, 2021
ac5c6b1
Small tweak
duplexsystem Jan 18, 2021
79fc527
Misc Improvements
duplexsystem Jan 18, 2021
cd518e4
Fix
duplexsystem Jan 18, 2021
508d4af
Cursed mode flag
duplexsystem Jan 18, 2021
b4f004d
debug and formatting
duplexsystem Jan 18, 2021
e1d682a
Simplify code
duplexsystem Jan 18, 2021
905faca
fix todo
duplexsystem Jan 18, 2021
a6def72
fix bug
duplexsystem Jan 18, 2021
774c975
Sidestream Support For Commit Message
duplexsystem Jan 18, 2021
0d8c1e9
CodeMC should work
duplexsystem Jan 18, 2021
9808799
EOF
duplexsystem Jan 18, 2021
31e890f
ReadME changes
duplexsystem Jan 18, 2021
c4c14a7
H1 > H3
duplexsystem Jan 18, 2021
1eb9bef
Update Licence
duplexsystem Jan 18, 2021
60a7ebf
Merge remote-tracking branch 'origin/ver/1.16.5' into dev/reforged
duplexsystem Jan 18, 2021
ede7d44
space
duplexsystem Jan 18, 2021
2f9dd85
Update README.md
duplexsystem Jan 18, 2021
204b1d0
Updated Upstream and Sidestream(s) (AirplaneLite)
duplexsystem Jan 19, 2021
a15336e
Fix upstreamCommit
duplexsystem Jan 19, 2021
28c2af2
Fix Branch Issue
duplexsystem Jan 19, 2021
2c7acf7
Fix Build
duplexsystem Jan 19, 2021
be92ebb
More print out
duplexsystem Jan 19, 2021
2ae2744
Oops
duplexsystem Jan 19, 2021
95e77f4
Updated Upstream and Sidestream(s) (Tuinity)
duplexsystem Jan 19, 2021
1c3d1b9
try not updating sub-modules
duplexsystem Jan 19, 2021
de7d60c
Fix build
duplexsystem Jan 19, 2021
df8005b
Revert "try not updating sub-modules "
duplexsystem Jan 19, 2021
d3ff148
Add another Airplane Patch and clean up spaghetti code
duplexsystem Jan 19, 2021
6ad095e
Change Patch Authors
duplexsystem Jan 19, 2021
4e6790d
Correct Licencing
duplexsystem Jan 20, 2021
b45f473
Updated Upstream and Sidestream(s) (PaperPurpur)
MrIvanPlays Jan 20, 2021
3095764
Let's try this
MrIvanPlays Jan 20, 2021
5f1f781
We're 2021
MrIvanPlays Jan 20, 2021
828088d
Test this too
MrIvanPlays Jan 20, 2021
ad24717
Didn't work, remove that
MrIvanPlays Jan 20, 2021
895e1cf
Apply the same strategy in readme as in license.md
MrIvanPlays Jan 20, 2021
ad1f51a
Make sure its 1 tab
MrIvanPlays Jan 20, 2021
d2f130f
Make Some things safer
duplexsystem Jan 20, 2021
37929ec
slight clean up
duplexsystem Jan 20, 2021
248def3
fix brandings
Titaniumtown Jan 20, 2021
89a675f
Merge branch 'dev/reforged' of github.com:YatopiaMC/Yatopia into dev/…
Titaniumtown Jan 20, 2021
034e262
forgot how to code for a second
duplexsystem Jan 20, 2021
2401e4c
Merge branch 'dev/reforged' of github.com:YatopiaMC/Yatopia into dev/…
Titaniumtown Jan 20, 2021
adc47af
fix commit message /es
duplexsystem Jan 20, 2021
c50fb33
Updated Upstream and Sidestream(s) (Paper/AirplaneLite)
duplexsystem Jan 20, 2021
48e5fb1
Add new line
duplexsystem Jan 20, 2021
869319e
Merge remote-tracking branch 'origin/dev/reforged' into dev/reforged
duplexsystem Jan 20, 2021
c6fdf6a
Auto Fix Branches
duplexsystem Jan 21, 2021
504ce6f
Merge remote-tracking branch 'origin/ver/1.16.5' into dev/reforged
duplexsystem Jan 21, 2021
ebedc56
Simplify fixBranch logic
duplexsystem Jan 21, 2021
913b710
Forgot a null check
duplexsystem Jan 21, 2021
893a87f
update tuinity (dev/lighting was merged!)
Titaniumtown Jan 21, 2021
81c5544
Update upstreams
Titaniumtown Jan 21, 2021
df762e7
Merge branch 'ver/1.16.5' of https://github.com/YatopiaMC/Yatopia int…
MrIvanPlays Jan 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 30 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,40 +41,55 @@ jobs:
uses: styfle/cancel-workflow-action@0.4.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Pull Maven Cache

- name: Pull Gradle Cache
uses: actions/cache@v2
id: maven-cache
id: gradle-cache
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- uses: s4u/maven-settings-action@v2.1.0
name: Use ${{ matrix.java }} as the java target
with:
properties: '[{"maven.compiler.target": "${{ matrix.java }}"}]'
path: ~/.gradle
key: ${{ runner.os }}-maven-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-java-${{ matrix.java }}

- name: Setup Yatopia Project
run: |
git config --global user.email "ci@github.com"
git config --global user.name "Github CI"
sudo chmod -R -f 777 scripts
./yatopia init
git config --global gc.auto 0
sudo chmod -R -f 777 ./gradlew
./gradlew initGitSubmodules

- name: Get MC Version
run: echo "::set-output name=mcver::$(cat "Tuinity/Paper/work/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)"
run: echo "::set-output name=mcver::$(cat "Paper/work/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)"
id: mcver

- name: Pull Minecraft Decompile Cache
uses: actions/cache@v2
id: decompile-cache
with:
path: Tuinity/Paper/work/Minecraft/${{ steps.mcver.outputs.mcver }}
key: ${{ steps.mcver.outputs.mcver }}-${{ runner.os }}-minecraft-decomp
path: Paper/work/Minecraft/${{ steps.mcver.outputs.mcver }}
key: ${{ steps.mcver.outputs.mcver }}-${{ runner.os }}-java-${{ matrix.java }}-minecraft-decomp

- name: Apply Patches
run: |
./gradlew setupUpstream
./gradlew applyPatches

- name: Pull Maven Cache
uses: actions/cache@v2
id: maven-cache
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: Build Yatopia
run: |
./yatopia full
./gradlew paperclip

- name: Upload Artifact
if: github.ref != 'refs/heads/ver/1.16.4'
uses: actions/upload-artifact@v2
Expand Down
90 changes: 59 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,62 @@
Spigot
# JVM crash related
core.*
hs_err_pid*

# Intellij
.idea/
*.iml
*.ipr
*.iws
out/

# Eclipse
.classpath
.project
.settings/

# netbeans
nbproject/
nbactions.xml

# Gradle
!gradle-wrapper.jar
.gradle/
build/
*/build/

# we use maven!
build.xml

# Maven
log/
target/
dependency-reduced-pom.xml

# various other potential build files
build/
bin/
dist/
manifest.mf

# Mac
.DS_Store/
.DS_Store

# vim
.*.sw[a-p]

# Linux temp files
*~

# other stuff
run/
docs/build/

Yatopia-Server
Yatopia-API
mc-dev
*.iml
.settings/org.eclipse.m2e.core.prefs
.project
.idea
yatopia-paperclip.jar

target

target/site/surefire-report.html
/patches/Akarin/**
/patches/Purpur/**
/patches/Empirecraft/**
/patches/Rainforest/**
/patches/Origami/**
/patches/AirplaneLite/**
!/patches/Purpur/server.txt
!/patches/Purpur/api.txt
!/patches/Empirecraft/server.txt
!/patches/Empirecraft/api.txt
!/patches/Akarin/server.txt
!/patches/Akarin/api.txt
!/patches/Rainforest/server.txt
!/patches/Rainforest/api.txt
!/patches/Origami/server.txt
!/patches/Origami/api.txt
!/patches/AirplaneLite/server.txt
!/patches/AirplaneLite/api.txt
*.jar

/testserver/**
yatopia-launcher.jar
*clip.jar
last-paper
!upstreamConfig/*
!upstreamCommits/*
48 changes: 32 additions & 16 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
[submodule "Tuinity"]
path = Tuinity
url = https://github.com/YatopiaMC/Yatopia-Tuninty.git
[submodule "Paper"]
path = Paper
url = https://github.com/PaperMC/Paper.git

[submodule "upstream/Tuinity"]
path = upstream/Tuinity
url = https://github.com/Spottedleaf/Tuinity
branch = master

[submodule "upstream/Purpur"]
path = upstream/Purpur
url = https://github.com/pl3xgaming/Purpur.git
branch = ver/1.16.5
[submodule "Akarin"]
path = Akarin

[submodule "upstream/AirplaneLite"]
path = upstream/AirplaneLite
url = https://github.com/Technove/AirplaneLite.git
branch = master

[submodule "upstream/Akarin"]
path = upstream/Akarin
url = https://github.com/Akarin-project/Akarin.git
branch = ver/1.16.4
[submodule "Purpur"]
path = Purpur
url = https://github.com/pl3xgaming/Purpur.git
branch = ver/1.16.5
[submodule "Empirecraft"]
path = Empirecraft

[submodule "upstream/Empirecraft"]
path = upstream/Empirecraft
url = https://github.com/starlis/empirecraft.git
branch = master
[submodule "Origami"]
path = Origami

[submodule "upstream/Origami"]
path = upstream/Origami
url = https://github.com/Minebench/Origami.git
branch = 1.16
[submodule "AirplaneLite"]
path = AirplaneLite
url = https://github.com/Technove/AirplaneLite.git

[submodule "Yatopia-API"]
path = Yatopia-API

[submodule "Yatopia-Server"]
path = Yatopia-Server
1 change: 0 additions & 1 deletion AirplaneLite
Submodule AirplaneLite deleted from c496d1
52 changes: 13 additions & 39 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ pipeline {
steps {
scmSkip(deleteBuild: true, skipPattern:'.*\\[CI-SKIP\\].*')
sh 'rm -rf ./target'
sh 'rm -rf ./Tuinity/Paper/Paper-API ./Tuinity/Paper/Paper-Server ./Tuinity/Paper/work/Spigot/Spigot-API ./Tuinity/Paper/work/Spigot/Spigot-Server'
sh 'rm -rf ./Tuinity/Tuinity-API ./Tuinity/Tuinity-Server ./Tuinity/mc-dev'
sh 'rm -rf ./Paper/Paper-API ./Paper/Paper-Server ./Paper/work/Spigot/Spigot-API ./Paper/work/Spigot/Spigot-Server'
sh 'rm -rf ./Yatopia-API ./Yatopia-Server'
sh 'chmod +x ./scripts/*.sh'
sh 'chmod +x ./gradlew'
}
}
stage('Init project & submodules') {
steps {
sh './yatopia init'
sh './gradlew initGitSubmodules'
}
}
stage('Decompile & apply patches') {
Expand All @@ -28,17 +27,13 @@ pipeline {
publisherStrategy: 'EXPLICIT',
) {
sh '''
set -e
source "./scripts/functions.sh"
basedir
$scriptdir/updateUpstream.sh "$basedir" false true || exit 1
set -e
$scriptdir/applyPatches.sh "$basedir" || exit 1
./gradlew setupUpstream
./gradlew applyPatches
'''
}
}
}
stage('Build API') {
stage('Build') {
tools {
jdk "OpenJDK 8"
}
Expand All @@ -48,23 +43,10 @@ pipeline {
mavenLocalRepo: '.repository',
publisherStrategy: 'EXPLICIT'
) {
sh 'mvn -N install org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy'
sh 'cd Yatopia-API && mvn install org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy'
sh 'cd ./Tuinity/Paper/Paper-MojangAPI && mvn install'
}
}
}
stage('Build Server') {
tools {
jdk "OpenJDK 8"
}
steps {
withMaven(
maven: '3',
mavenLocalRepo: '.repository',
publisherStrategy: 'EXPLICIT'
) {
sh 'cd Yatopia-Server && mvn install org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy -DaltDeploymentRepository=codemc-snapshots::default::https://repo.codemc.org/repository/nms-local/'
sh '''
./gradlew build
./gradlew publish
'''
}
}
}
Expand All @@ -79,18 +61,10 @@ pipeline {
publisherStrategy: 'EXPLICIT'
) {
sh '''
basedir=$(pwd)
paperworkdir="$basedir/Tuinity/Paper/work"
mcver=$(cat "$paperworkdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
serverjar="$basedir/Yatopia-Server/target/yatopia-$mcver.jar"
vanillajar="$paperworkdir/Minecraft/$mcver/$mcver.jar"
(
cd "$paperworkdir/Paperclip"
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$serverjar" "-Dvanillajar=$vanillajar"
)
mkdir -p "./target"
cp "$paperworkdir/Paperclip/assembly/target/paperclip-$mcver.jar" "./target/yatopia-$mcver-paperclip-b$BUILD_NUMBER.jar"
'''
./gradlew paperclip
cp "yatopia-$mcver-paperclip.jar" "./target/yatopia-$mcver-paperclip-b$BUILD_NUMBER.jar"
'''
}
}
post {
Expand Down
16 changes: 5 additions & 11 deletions Licensing/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
The project (Everything that is not a .patch file) is licensed under the MIT license found [here](https://github.com/YatopiaMC/Yatopia/blob/ver/1.16.2/Licensing/MIT.md).

All patches (.patch files) marked with "lithium" are licensed under LGPL3 found [here](https://github.com/jellysquid3/lithium-fabric/blob/1.16.x/dev/LICENSE.txt).

All patches (.patch files) marked with "tic-tacs" are licensed under LGPL3 found [here](https://github.com/gegy1000/tic-tacs/blob/1.16.2/LICENSE).

All patches (.patch files) marked with "gluelist" are licensed under Apache 2.0 found [here](https://github.com/ertugrulcetin/GlueList/blob/master/Readme.md).

All other patches (.patch files) included in this repo are licensed under the MIT license found [here](https://github.com/YatopiaMC/Yatopia/blob/ver/1.16.2/Licensing/MIT.md).

See [EMC](https://github.com/starlis/empirecraft/blob/master/README.md), [Akarin](https://github.com/Akarin-project/Akarin/blob/1.16.3/LICENSE.md), [Purpur](https://github.com/pl3xgaming/Purpur/blob/ver/1.16.3/LICENSE), [Rainforest](https://github.com/Proximyst/Rainforest), [Origami](https://github.com/Minebench/Origami/blob/1.16/PATCHES-LICENSE), and [Tuinity](https://github.com/Spottedleaf/Tuinity/blob/master/PATCHES-LICENSE) for the license of patches automatically pulled when built.
The project without the build tools (Everything that is not a .patch file or in the buildSrc folder) are licensed under the MIT license found [here](MIT.md).<br>
All files in the buildSrc folder are licensed under MIT found [here](../buildSrc/license.txt)<br>
All patches (.patch files) marked with "lithium" are licensed under LGPL3 found [here](https://github.com/jellysquid3/lithium-fabric/blob/1.16.x/dev/LICENSE.txt).<br>
All other patches (.patch files) included in this repo are licensed under the MIT license found [here](MIT.md).<br>
See [EMC](https://github.com/starlis/empirecraft/blob/master/README.md), [Akarin](https://github.com/Akarin-project/Akarin/blob/1.16.3/LICENSE.md), [Purpur](https://github.com/pl3xgaming/Purpur/blob/ver/1.16.5/LICENSE), [AirplaneLite](https://github.com/Technove/AirplaneLite/blob/master/PATCHES-LICENSE), [Origami](https://github.com/Minebench/Origami/blob/1.16/PATCHES-LICENSE), and [Tuinity](https://github.com/Spottedleaf/Tuinity/blob/master/PATCHES-LICENSE) for the license of patches automatically pulled during upstream updates.
2 changes: 1 addition & 1 deletion Licensing/MIT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 YatopiaMC
Copyright (c) 2020 - 2021 YatopiaMC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading