Skip to content

Commit

Permalink
Update deprecated code and general code cleanup (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHaws committed Sep 11, 2022
1 parent a634853 commit 5eceb64
Show file tree
Hide file tree
Showing 39 changed files with 1,919 additions and 1,877 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: ci

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout Git repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Restore Gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: 17

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build --stacktrace
- name: Install rename
run: sudo apt-get install -y rename

- name: Rename file
run: |
cd ./build/libs/
rename -f 's/-all//;' '' *
- name: Archive plugin jars on GitHub
uses: actions/upload-artifact@v3
with:
name: AutomaticInventory
path: build/libs
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ Copy AutomaticInventory.jar into your server's plugins folder and then execute t
**/autorefill enable** turns on hotbar stack auto refill.

**/autorefill disable** turns off hotbar stack auto refill.

# Credits
This is a fork of:
- [MLG-Fortress/AutomaticInventory](https://github.com/MLG-Fortress/AutomaticInventory)
- [HelloWorldMinecraft/AutomaticInventory](https://github.com/HelloWorldMinecraft/AutomaticInventory)
- [BigScary/AutomaticInventory](https://github.com/BigScary/AutomaticInventory)
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {

spigot {
name = project.property("pluginName")
authors = [project.property("authors")]
authors = project.property("authors").split("\\s*,\\s*")
apiVersion = project.property("spigotApiVersion")
load = STARTUP
commands {
Expand Down Expand Up @@ -106,6 +106,7 @@ spigot {
}

shadowJar {
//archiveClassifier.set("")
relocate 'org.bstats', 'dev.chaws.automaticinventory'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pluginName = automaticinventory
authors = Big_Scary, RoboMWM, AllTheCode, Pugabyte, Chaws
mcVersion = 1.19.2
spigotApiVersion = 1.19
version = 3.0.0
version = 3.1.0
Loading

0 comments on commit 5eceb64

Please sign in to comment.