Skip to content

Commit 9984f35

Browse files
committed
First release
0 parents  commit 9984f35

File tree

80 files changed

+5438
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5438
-0
lines changed

.github/workflows/build.yml

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
name: Build
2+
on: [push, pull_request, workflow_dispatch]
3+
env:
4+
VERSION: "1.0.0"
5+
jobs:
6+
java_8:
7+
name: 🔥 Build [Java 8]
8+
runs-on: ubuntu-latest
9+
env:
10+
JAVA_VERSION: 8
11+
steps:
12+
13+
- uses: actions/checkout@v2
14+
15+
- name: ❤️ Set up Java ${{ env.JAVA_VERSION }}
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: ${{ env.JAVA_VERSION }}
19+
distribution: 'adopt'
20+
architecture: x64
21+
22+
- name: 🍎 Cache the Maven packages to speed up build
23+
uses: actions/cache@v1
24+
with:
25+
path: ~/.m2
26+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: ${{ runner.os }}-m2
28+
29+
- name: 😎 Create artifact directory
30+
run: mkdir ${{ GITHUB.WORKSPACE }}/DownloadArtifact
31+
32+
- name: 💻 Build Protocol
33+
run: |
34+
cd Protocol
35+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
36+
mvn -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
37+
38+
- name: 💻 Build BungeeCord
39+
run: |
40+
cd BungeeCord
41+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
42+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
43+
44+
- name: 💻 Build Spigot
45+
run: |
46+
cd Spigot
47+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
48+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
49+
50+
- name: 🖤 Create artifact
51+
uses: 'actions/upload-artifact@v2'
52+
with:
53+
name: "v${{ env.VERSION }}-${{ github.sha }}-JDK${{ env.JAVA_VERSION }}"
54+
path: '${{ GITHUB.WORKSPACE }}/DownloadArtifact/*'
55+
retention-days: 7
56+
if-no-files-found: error
57+
58+
java_11:
59+
name: 🔥 Build [Java 11]
60+
runs-on: ubuntu-latest
61+
env:
62+
JAVA_VERSION: 11
63+
steps:
64+
65+
- uses: actions/checkout@v2
66+
67+
- name: ❤️ Set up Java ${{ env.JAVA_VERSION }}
68+
uses: actions/setup-java@v2
69+
with:
70+
java-version: ${{ env.JAVA_VERSION }}
71+
distribution: 'adopt'
72+
architecture: x64
73+
74+
- name: 🍎 Cache the Maven packages to speed up build
75+
uses: actions/cache@v1
76+
with:
77+
path: ~/.m2
78+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
79+
restore-keys: ${{ runner.os }}-m2
80+
81+
- name: 😎 Create artifact directory
82+
run: mkdir ${{ GITHUB.WORKSPACE }}/DownloadArtifact
83+
84+
- name: 💻 Build Protocol
85+
run: |
86+
cd Protocol
87+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
88+
mvn -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
89+
90+
- name: 💻 Build BungeeCord
91+
run: |
92+
cd BungeeCord
93+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
94+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
95+
96+
- name: 💻 Build Spigot
97+
run: |
98+
cd Spigot
99+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
100+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
101+
102+
- name: 🖤 Create artifact
103+
uses: 'actions/upload-artifact@v2'
104+
with:
105+
name: "v${{ env.VERSION }}-${{ github.sha }}-JDK${{ env.JAVA_VERSION }}"
106+
path: '${{ GITHUB.WORKSPACE }}/DownloadArtifact/*'
107+
retention-days: 7
108+
if-no-files-found: error
109+
110+
java_16:
111+
name: 🔥 Build [Java 16]
112+
runs-on: ubuntu-latest
113+
env:
114+
JAVA_VERSION: 16
115+
steps:
116+
117+
- uses: actions/checkout@v2
118+
119+
- name: ❤️ Set up Java ${{ env.JAVA_VERSION }}
120+
uses: actions/setup-java@v2
121+
with:
122+
java-version: ${{ env.JAVA_VERSION }}
123+
distribution: 'adopt'
124+
architecture: x64
125+
126+
- name: 🍎 Cache the Maven packages to speed up build
127+
uses: actions/cache@v1
128+
with:
129+
path: ~/.m2
130+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
131+
restore-keys: ${{ runner.os }}-m2
132+
133+
- name: 😎 Create artifact directory
134+
run: mkdir ${{ GITHUB.WORKSPACE }}/DownloadArtifact
135+
136+
- name: 💻 Build Protocol
137+
run: |
138+
cd Protocol
139+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
140+
mvn -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
141+
142+
- name: 💻 Build BungeeCord
143+
run: |
144+
cd BungeeCord
145+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
146+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
147+
148+
- name: 💻 Build Spigot
149+
run: |
150+
cd Spigot
151+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
152+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
153+
154+
- name: 🖤 Create artifact
155+
uses: 'actions/upload-artifact@v2'
156+
with:
157+
name: "v${{ env.VERSION }}-${{ github.sha }}-JDK${{ env.JAVA_VERSION }}"
158+
path: '${{ GITHUB.WORKSPACE }}/DownloadArtifact/*'
159+
retention-days: 7
160+
if-no-files-found: error
161+
162+
java_17:
163+
name: 🔥 Build [Java 17]
164+
runs-on: ubuntu-latest
165+
env:
166+
JAVA_VERSION: 17
167+
steps:
168+
169+
- uses: actions/checkout@v2
170+
171+
- name: ❤️ Set up Java ${{ env.JAVA_VERSION }}
172+
uses: actions/setup-java@v2
173+
with:
174+
java-version: ${{ env.JAVA_VERSION }}
175+
distribution: 'adopt'
176+
architecture: x64
177+
178+
- name: 🍎 Cache the Maven packages to speed up build
179+
uses: actions/cache@v1
180+
with:
181+
path: ~/.m2
182+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
183+
restore-keys: ${{ runner.os }}-m2
184+
185+
- name: 😎 Create artifact directory
186+
run: mkdir ${{ GITHUB.WORKSPACE }}/DownloadArtifact
187+
188+
- name: 💻 Build Protocol
189+
run: |
190+
cd Protocol
191+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
192+
mvn -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
193+
194+
- name: 💻 Build BungeeCord
195+
run: |
196+
cd BungeeCord
197+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
198+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
199+
200+
- name: 💻 Build Spigot
201+
run: |
202+
cd Spigot
203+
mvn clean install -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e
204+
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ env.JAVA_VERSION }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml
205+
206+
- name: 🖤 Create artifact
207+
uses: 'actions/upload-artifact@v2'
208+
with:
209+
name: "v${{ env.VERSION }}-${{ github.sha }}-JDK${{ env.JAVA_VERSION }}"
210+
path: '${{ GITHUB.WORKSPACE }}/DownloadArtifact/*'
211+
retention-days: 7
212+
if-no-files-found: error

.gitignore

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
.metadata
2+
bin/
3+
tmp/
4+
*.tmp
5+
*.bak
6+
*.swp
7+
*~.nib
8+
local.properties
9+
.settings/
10+
.loadpath
11+
.recommenders
12+
13+
# External tool builders
14+
.externalToolBuilders/
15+
16+
# Locally stored "Eclipse launch configurations"
17+
*.launch
18+
19+
# PyDev specific (Python IDE for Eclipse)
20+
*.pydevproject
21+
22+
# CDT-specific (C/C++ Development Tooling)
23+
.cproject
24+
25+
# CDT- autotools
26+
.autotools
27+
28+
# Java annotation processor (APT)
29+
.factorypath
30+
31+
# PDT-specific (PHP Development Tools)
32+
.buildpath
33+
34+
# sbteclipse plugin
35+
.target
36+
37+
# Tern plugin
38+
.tern-project
39+
40+
# TeXlipse plugin
41+
.texlipse
42+
43+
# STS (Spring Tool Suite)
44+
.springBeans
45+
46+
# Code Recommenders
47+
.recommenders/
48+
49+
# Annotation Processing
50+
.apt_generated/
51+
.apt_generated_test/
52+
53+
# Scala IDE specific (Scala & Java development for Eclipse)
54+
.cache-main
55+
.scala_dependencies
56+
.worksheet
57+
58+
# Uncomment this line if you wish to ignore the project description file.
59+
# Typically, this file would be tracked if it contains build/dependency configurations:
60+
#.project
61+
62+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
63+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
64+
65+
# User-specific stuff
66+
.idea/
67+
.idea/**/workspace.xml
68+
.idea/**/tasks.xml
69+
.idea/**/usage.statistics.xml
70+
.idea/**/dictionaries
71+
.idea/**/shelf
72+
73+
# AWS User-specific
74+
.idea/**/aws.xml
75+
76+
# Generated files
77+
.idea/**/contentModel.xml
78+
79+
# Sensitive or high-churn files
80+
.idea/**/dataSources/
81+
.idea/**/dataSources.ids
82+
.idea/**/dataSources.local.xml
83+
.idea/**/sqlDataSources.xml
84+
.idea/**/dynamic.xml
85+
.idea/**/uiDesigner.xml
86+
.idea/**/dbnavigator.xml
87+
88+
# Gradle
89+
.idea/**/gradle.xml
90+
.idea/**/libraries
91+
92+
# Gradle and Maven with auto-import
93+
# When using Gradle or Maven with auto-import, you should exclude module files,
94+
# since they will be recreated, and may cause churn. Uncomment if using
95+
# auto-import.
96+
# .idea/artifacts
97+
# .idea/compiler.xml
98+
# .idea/jarRepositories.xml
99+
# .idea/modules.xml
100+
# .idea/*.iml
101+
# .idea/modules
102+
# *.iml
103+
# *.ipr
104+
105+
# CMake
106+
cmake-build-*/
107+
108+
# Mongo Explorer plugin
109+
.idea/**/mongoSettings.xml
110+
111+
# File-based project format
112+
*.iws
113+
114+
# IntelliJ
115+
out/
116+
117+
# mpeltonen/sbt-idea plugin
118+
.idea_modules/
119+
120+
# JIRA plugin
121+
atlassian-ide-plugin.xml
122+
123+
# Cursive Clojure plugin
124+
.idea/replstate.xml
125+
126+
# Crashlytics plugin (for Android Studio and IntelliJ)
127+
com_crashlytics_export_strings.xml
128+
crashlytics.properties
129+
crashlytics-build.properties
130+
fabric.properties
131+
132+
# Editor-based Rest Client
133+
.idea/httpRequests
134+
135+
# Android studio 3.1+ serialized cache file
136+
.idea/caches/build_file_checksums.ser
137+
138+
# Gradle
139+
.gradle/
140+
141+
# Build path
142+
build/
143+
144+
# Compiled class file
145+
*.class
146+
147+
# Log file
148+
*.log
149+
150+
# BlueJ files
151+
*.ctxt
152+
153+
# Mobile Tools for Java (J2ME)
154+
.mtj.tmp/
155+
156+
# Package Files #
157+
*.jar
158+
*.war
159+
*.nar
160+
*.ear
161+
*.zip
162+
*.tar.gz
163+
*.rar
164+
165+
**/target/**
166+
167+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
168+
hs_err_pid*

0 commit comments

Comments
 (0)