-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cb3a5f
commit 428eea5
Showing
866 changed files
with
50,214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created | ||
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle | ||
|
||
name: Build and Publish | ||
|
||
on: | ||
#schedule: | ||
# - cron: '37 7 * * *' | ||
push: | ||
branches: [ "dev/2.0", "master" ] | ||
# Publish semver tags as releases. | ||
#tags: [ 'v*.*.*' ] | ||
#pull_request: | ||
# branches: [ "development", "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
|
||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: shadowJar | ||
|
||
- name: Copy files | ||
run: | | ||
mkdir -p temp | ||
mkdir temp/modules/ | ||
mkdir temp/storage/ | ||
mkdir temp/storage/pluginJars/ | ||
cp start-files/*.* temp/ | ||
cp simplecloud-modules/**/build/libs/SimpleCloud-*.jar temp/modules/ | ||
cp simplecloud-runner/build/libs/runner.jar temp/runner.jar | ||
cp simplecloud-base/build/libs/base.jar temp/storage/base.jar | ||
cp simplecloud-plugin/build/libs/*.jar temp/storage/pluginJars/ | ||
cp simplecloud-dependency-loader/build/libs/dependency-loader.jar temp/storage/dependency-loader.jar | ||
cp simplecloud-launcher/build/libs/launcher.jar temp/launcher.jar | ||
rm temp/modules/SimpleCloud-Chat+Tab.jar | ||
rm temp/modules/SimpleCloud-ServiceSelection.jar | ||
rm temp/modules/SimpleCloud-CloudFlare.jar | ||
- name: Upload zip | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SimpleCloud-Latest | ||
path: temp/ | ||
|
||
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in | ||
# the publishing section of your build.gradle | ||
- name: Publish | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: publish | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
########################## | ||
## Java | ||
########################## | ||
*.class | ||
.mtj.tmp/ | ||
*.jar | ||
*.war | ||
*.ear | ||
hs_err_pid* | ||
|
||
########################## | ||
## Maven | ||
########################## | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
|
||
########################## | ||
## Gradle | ||
########################## | ||
.gradle | ||
/build/ | ||
gradle-app.setting | ||
!gradle-wrapper.jar | ||
.gradletasknamecache | ||
|
||
########################## | ||
## IntelliJ | ||
########################## | ||
*.iml | ||
.idea/ | ||
*.ipr | ||
*.iws | ||
out/ | ||
.idea_modules/ | ||
|
||
########################## | ||
## Eclipse | ||
########################## | ||
.metadata | ||
.classpath | ||
.project | ||
.settings/ | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.loadpath | ||
|
||
########################## | ||
## NetBeans | ||
########################## | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
nbactions.xml | ||
nb-configuration.xml | ||
|
||
########################## | ||
## OS X | ||
########################## | ||
.DS_Store | ||
|
||
########################## | ||
## SimpleCloud | ||
########################## | ||
logs/ | ||
launcher.json | ||
storage/ | ||
local-repo/ | ||
modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
pipeline { | ||
agent any | ||
options { | ||
buildDiscarder logRotator(numToKeepStr: '10') | ||
} | ||
stages { | ||
stage('Clean') { | ||
steps { | ||
sh 'chmod +x ./gradlew'; | ||
sh './gradlew clean'; | ||
} | ||
} | ||
stage('Build') { | ||
steps { | ||
sh './gradlew build'; | ||
} | ||
} | ||
stage('Test') { | ||
steps { | ||
sh './gradlew test'; | ||
junit '**/build/test-results/test/*.xml'; | ||
} | ||
} | ||
stage('Create zip') { | ||
steps { | ||
sh 'rm -f SimpleCloud-Latest.zip'; | ||
sh 'mkdir -p temp' | ||
sh 'mkdir temp/modules/' | ||
sh 'mkdir temp/storage/' | ||
sh 'cp start-files/*.* temp/'; | ||
sh 'cp simplecloud-modules/**/build/libs/*.jar temp/modules/'; | ||
sh 'cp simplecloud-runner/build/libs/runner.jar temp/runner.jar'; | ||
sh 'cp simplecloud-base/build/libs/base.jar temp/storage/base.jar'; | ||
sh 'rm temp/modules/SimpleCloud-Chat+Tab.jar'; | ||
sh 'rm temp/modules/SimpleCloud-ServiceSelection.jar'; | ||
sh 'rm temp/modules/SimpleCloud-CloudFlare.jar'; | ||
zip archive: true, dir: 'temp', glob: '', zipFile: 'SimpleCloud-Latest.zip'; | ||
sh 'rm -r temp/'; | ||
} | ||
} | ||
stage('Sources') { | ||
steps { | ||
sh './gradlew sourceJar'; | ||
} | ||
} | ||
stage('Publish') { | ||
when { | ||
anyOf { | ||
branch 'master'; | ||
branch 'dev/2.0'; | ||
} | ||
} | ||
steps { | ||
sh './gradlew publish'; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020-2022 The SimpleCloud authors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.