From 1bcd38d7d2965774861664f75db53b41f8ed024b Mon Sep 17 00:00:00 2001 From: Tiger Tang Date: Wed, 28 Dec 2022 15:44:42 -0800 Subject: [PATCH] Revert "Updated the dead maven repo" --- .github/workflows/maven.yml | 68 --------------- .gitignore | 8 +- README.md | 16 ++-- pom.xml | 87 +++++++------------ .../lib/scoreboard/type/SimpleScoreboard.java | 4 + 5 files changed, 44 insertions(+), 139 deletions(-) delete mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 9f97e26..0000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,68 +0,0 @@ -# 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 . - echo "Committing..." - git commit -m "Auto update by Github Actions" - echo "Pushing..." - 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 diff --git a/.gitignore b/.gitignore index fd019c1..f579132 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.idea/** -output/** -target/** -/scoreboard.iml +.idea/ +output/ +target/ +ScoreboardLib.iml \ No newline at end of file diff --git a/README.md b/README.md index 021b952..0a254e7 100644 --- a/README.md +++ b/README.md @@ -26,17 +26,15 @@ How do I add it to my project? -------------- Simply add the following to your `pom.xml`. - - - jingwenmc-repo - https://raw.githubusercontent.com/jingwenMC/MavenRepo/master - - + + tiger-repo + http://repo.tigerhix.me/content/repositories/snapshots/ + - me.tigerhix.lib - scoreboard - 1.0.1-SNAPSHOT + me.tigerhix.lib + scoreboard + 1.0.1-SNAPSHOT Now you are able to create your own pretty scoreboards. diff --git a/pom.xml b/pom.xml index 323b2e5..295a251 100644 --- a/pom.xml +++ b/pom.xml @@ -18,75 +18,46 @@ - spigotmc-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - sonatype - https://oss.sonatype.org/content/groups/public/ + tiger-repo + http://repo.tigerhix.me/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.8.1 + 3.0 - ${java.version} - ${java.version} - - - org.projectlombok - lombok - 1.18.24 - - + 1.7 + 1.7 + + -Xlint:all + -Xlint:-path + + true + true - - 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 - - + 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 cc281ca..b864c1b 100755 --- a/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java +++ b/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java @@ -269,6 +269,10 @@ public boolean isBanned() { return false; } + @Override + public void setBanned(boolean banned) { + } + @Override public boolean isWhitelisted() { return false;