Skip to content

Commit 5eceb64

Browse files
Update deprecated code and general code cleanup (#1)
1 parent a634853 commit 5eceb64

39 files changed

+1919
-1877
lines changed

.github/workflows/ci.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Git repo
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Restore Gradle cache
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.gradle/caches
27+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
28+
restore-keys: |
29+
${{ runner.os }}-gradle-
30+
31+
- name: Set up JDK 17
32+
uses: actions/setup-java@v3
33+
with:
34+
distribution: 'microsoft'
35+
java-version: 17
36+
37+
- name: Validate Gradle Wrapper
38+
uses: gradle/wrapper-validation-action@v1
39+
40+
- name: Build with Gradle
41+
run: |
42+
chmod +x gradlew
43+
./gradlew build --stacktrace
44+
45+
- name: Install rename
46+
run: sudo apt-get install -y rename
47+
48+
- name: Rename file
49+
run: |
50+
cd ./build/libs/
51+
rename -f 's/-all//;' '' *
52+
53+
- name: Archive plugin jars on GitHub
54+
uses: actions/upload-artifact@v3
55+
with:
56+
name: AutomaticInventory
57+
path: build/libs

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,9 @@ Copy AutomaticInventory.jar into your server's plugins folder and then execute t
8080
**/autorefill enable** turns on hotbar stack auto refill.
8181

8282
**/autorefill disable** turns off hotbar stack auto refill.
83+
84+
# Credits
85+
This is a fork of:
86+
- [MLG-Fortress/AutomaticInventory](https://github.com/MLG-Fortress/AutomaticInventory)
87+
- [HelloWorldMinecraft/AutomaticInventory](https://github.com/HelloWorldMinecraft/AutomaticInventory)
88+
- [BigScary/AutomaticInventory](https://github.com/BigScary/AutomaticInventory)

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828

2929
spigot {
3030
name = project.property("pluginName")
31-
authors = [project.property("authors")]
31+
authors = project.property("authors").split("\\s*,\\s*")
3232
apiVersion = project.property("spigotApiVersion")
3333
load = STARTUP
3434
commands {
@@ -106,6 +106,7 @@ spigot {
106106
}
107107

108108
shadowJar {
109+
//archiveClassifier.set("")
109110
relocate 'org.bstats', 'dev.chaws.automaticinventory'
110111
}
111112

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pluginName = automaticinventory
44
authors = Big_Scary, RoboMWM, AllTheCode, Pugabyte, Chaws
55
mcVersion = 1.19.2
66
spigotApiVersion = 1.19
7-
version = 3.0.0
7+
version = 3.1.0

0 commit comments

Comments
 (0)