From 07a7a2f6da7d26124293bd815823b56eb0a703f9 Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Mon, 12 Dec 2022 16:31:34 +0800
Subject: [PATCH 1/8] Update maven pom.xml
---
pom.xml | 87 ++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 58 insertions(+), 29 deletions(-)
diff --git a/pom.xml b/pom.xml
index 295a251..323b2e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,46 +18,75 @@
- tiger-repo
- http://repo.tigerhix.me/content/groups/public/
+ spigotmc-repo
+ https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+
+
+ sonatype
+ https://oss.sonatype.org/content/groups/public/
-
-
- nexus
- http://repo.tigerhix.me/content/repositories/snapshots
-
-
-
-
-
- src/main/resources
- true
-
- **/*.yml
- **/*.properties
-
-
-
org.apache.maven.plugins
maven-compiler-plugin
- 3.0
+ 3.8.1
- 1.7
- 1.7
-
- -Xlint:all
- -Xlint:-path
-
- true
- true
+ ${java.version}
+ ${java.version}
+
+
+ org.projectlombok
+ lombok
+ 1.18.24
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+ 3.2.4
+
+
+ package
+
+ shade
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+ true
+
+
-
+
+
+ org.spigotmc
+ spigot-api
+ 1.13.2-R0.1-SNAPSHOT
+ provided
+
+
+ org.jetbrains
+ annotations
+ 23.0.0
+ provided
+
+
+ org.projectlombok
+ lombok
+ 1.18.24
+ provided
+
+
From 4c938e64fc26739c003afb4938eece3b87593bd9 Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Mon, 12 Dec 2022 16:35:19 +0800
Subject: [PATCH 2/8] Update API version to 1.13.2
---
.gitignore | 8 ++++----
.../me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java | 4 ----
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/.gitignore b/.gitignore
index f579132..fd019c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-.idea/
-output/
-target/
-ScoreboardLib.iml
\ No newline at end of file
+.idea/**
+output/**
+target/**
+/scoreboard.iml
diff --git a/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java b/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java
index b864c1b..cc281ca 100755
--- a/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java
+++ b/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java
@@ -269,10 +269,6 @@ public boolean isBanned() {
return false;
}
- @Override
- public void setBanned(boolean banned) {
- }
-
@Override
public boolean isWhitelisted() {
return false;
From eacc8d0583295b62beb8610734941438e8575655 Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Mon, 12 Dec 2022 16:39:13 +0800
Subject: [PATCH 3/8] Update README.md
---
README.md | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 0a254e7..7dfa675 100644
--- a/README.md
+++ b/README.md
@@ -26,15 +26,17 @@ How do I add it to my project?
--------------
Simply add the following to your `pom.xml`.
-
- tiger-repo
- http://repo.tigerhix.me/content/repositories/snapshots/
-
+
+
+ jitpack.io
+ https://jitpack.io
+
+
- me.tigerhix.lib
- scoreboard
- 1.0.1-SNAPSHOT
+ com.github.jingwenMC
+ ScoreboardLib
+ Tag
Now you are able to create your own pretty scoreboards.
From 08e44e1ea7dece72566454dd2ad3eaba244c7c3d Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Mon, 12 Dec 2022 16:39:31 +0800
Subject: [PATCH 4/8] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 7dfa675..68b64ab 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ Simply add the following to your `pom.xml`.
com.github.jingwenMC
ScoreboardLib
- Tag
+ 1.0.1
Now you are able to create your own pretty scoreboards.
From c8d4e5521a22d6e55f712aaec7e49608d4c78770 Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Thu, 22 Dec 2022 14:51:08 +0800
Subject: [PATCH 5/8] =?UTF-8?q?=E5=88=9B=E5=BB=BAWorkflow?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/workflows/maven.yml | 66 +++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 .github/workflows/maven.yml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..eae7f35
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,66 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
+ - name: Upload a Build Artifact
+ uses: actions/upload-artifact@v2
+ with:
+ # Artifact name
+ name: Jar_Snapshot_Build # optional
+ # A file, directory or wildcard pattern that describes what to upload
+ path: target/scoreboard-*.jar
+ - name: Upload to Repo
+ run: |
+ echo "Deploying to the Github..."
+ git clone --depth=1 https://${{ secrets.REPO_KEY }}@github.com/jingwenMC/MavenRepo.git /home/runner/MavenRepo
+ mvn deploy -DaltDeploymentRepository=maven-repo::default::file:/home/runner/MavenRepo
+ git config --global user.email "actions@github.com"
+ git config --global user.name "Github Actions User"
+ cd /home/runner/MavenRepo
+ git add .
+ git commit -m "Auto update by Github Actions"
+ git push --force
+ - name: Auto Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
+ with:
+ tag_name: build-${{ github.run_number }}
+ release_name: ScoreboardLib Snapshot Build ${{ github.run_number }}
+ body: |
+ 提交代码自动发布的Release
+ 构建编号: build-${{ github.run_number }}
+ draft: false
+ prerelease: true
+ - name: Create zip Asset
+ run: |
+ zip -v Released_File_Build_${{ github.run_number }}.zip ./target/*.jar
+ - name: Upload Release Asset
+ id: upload-release-asset
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./Released_File_Build_${{ github.run_number }}.zip
+ asset_name: Released_File_Build_${{ github.run_number }}.zip
+ asset_content_type: application/zip
\ No newline at end of file
From 447ab377f71338365c56b9d3c537ab48ef6726fc Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Thu, 22 Dec 2022 15:04:27 +0800
Subject: [PATCH 6/8] Edit Workflow
---
.github/workflows/maven.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index eae7f35..6f1273c 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -36,6 +36,7 @@ jobs:
git config --global user.name "Github Actions User"
cd /home/runner/MavenRepo
git add .
+ echo "Committing..."
git commit -m "Auto update by Github Actions"
git push --force
- name: Auto Release
From f32b5fb2d92b01314e1445fcb4f7416dd63f5cc9 Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Thu, 22 Dec 2022 15:14:36 +0800
Subject: [PATCH 7/8] Edit Workflow
---
.github/workflows/maven.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 6f1273c..9f97e26 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -38,6 +38,7 @@ jobs:
git add .
echo "Committing..."
git commit -m "Auto update by Github Actions"
+ echo "Pushing..."
git push --force
- name: Auto Release
id: create_release
From be52e74ec43c2f7583ab0702917a6ba32893db84 Mon Sep 17 00:00:00 2001
From: jingwenMC <2313055824@qq.com>
Date: Thu, 22 Dec 2022 15:20:03 +0800
Subject: [PATCH 8/8] Edit README.md
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 68b64ab..021b952 100644
--- a/README.md
+++ b/README.md
@@ -28,15 +28,15 @@ Simply add the following to your `pom.xml`.
- jitpack.io
- https://jitpack.io
+ jingwenmc-repo
+ https://raw.githubusercontent.com/jingwenMC/MavenRepo/master
- com.github.jingwenMC
- ScoreboardLib
- 1.0.1
+ me.tigerhix.lib
+ scoreboard
+ 1.0.1-SNAPSHOT
Now you are able to create your own pretty scoreboards.