Skip to content
Merged

Dev #116

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9f46632
updated README.md, added bstats, removed unused dependencies, fixed k…
Nandi0813 Dec 11, 2025
8736a5f
Merge branch 'master' into dev
Nandi0813 Dec 11, 2025
e5aadce
updated dependency versions, fixed fork util
Nandi0813 Dec 11, 2025
d1d52d1
Merge branch 'master' into dev
Nandi0813 Dec 11, 2025
6e856e6
Merge branch 'dev' of https://github.com/Nandi0813/ZonePractice-Pro i…
Nandi0813 Dec 11, 2025
61d3c4a
removed 1.8 fork support
Nandi0813 Dec 11, 2025
a684f98
removed carbon repo
Nandi0813 Dec 11, 2025
107593c
Merge remote-tracking branch 'origin/dev' into dev
Nandi0813 Dec 13, 2025
106ddc0
added null check for tablist user retreval, added 2ms delay for tab i…
Nandi0813 Dec 15, 2025
3b009e0
Merge branch 'master' into dev
Nandi0813 Dec 15, 2025
b47ffdf
Merge branch 'master' into dev
Nandi0813 Dec 15, 2025
f8d6f9a
refactored code
Nandi0813 Dec 15, 2025
a3dbcf8
refactored minimessage to one instance, removed prelogin event listener
Nandi0813 Dec 15, 2025
a76ab4e
Merge branch 'master' into dev
Nandi0813 Dec 18, 2025
43507a8
refactored Common class
Nandi0813 Dec 18, 2025
3199aa3
updated version to 6.22-SNAPSHOT
Nandi0813 Dec 18, 2025
2140672
updated dependencies
Nandi0813 Dec 18, 2025
7534d6b
move libs to Git LFS
Nandi0813 Dec 18, 2025
ff838e0
updated README.md to reflect new git lfs support
Nandi0813 Dec 18, 2025
f3e45ab
Merge branch 'master' into dev
Nandi0813 Dec 18, 2025
feadc6d
updated pom to fix compile error
Nandi0813 Dec 20, 2025
4597d34
updated anvilgui dependency
Nandi0813 Dec 28, 2025
6a60422
added pipeline integration
Nandi0813 Dec 28, 2025
f5f82d1
updated paper 1.8 depend scope
Nandi0813 Dec 28, 2025
7ac703b
updated paper 1.8 depend scope
Nandi0813 Dec 28, 2025
07082a7
Merge branch 'master' into dev
Nandi0813 Dec 28, 2025
27531b9
added git lfs to maven-build.yml
Nandi0813 Dec 28, 2025
8fa025d
Merge remote-tracking branch 'origin/dev' into dev
Nandi0813 Dec 28, 2025
1aa2c0b
updated maven build to use JDK 21
Nandi0813 Dec 28, 2025
d7b25b4
removed filename from distribution pom
Nandi0813 Dec 28, 2025
c84477a
added release workflow
Nandi0813 Dec 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ZonePractice Build

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'

- name: Install Local Dependencies
run: |
mvn install:install-file \
-Dfile=libs/PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar \
-DgroupId=org.github.paperspigot \
-DartifactId=paperspigot-api \
-Dversion=1.8.8-R0.1-SNAPSHOT \
-Dpackaging=jar \
-DgeneratePom=true

- name: Build with Maven
run: mvn -B clean install --file pom.xml

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: ZonePractice-Plugin
path: distribution/target/*.jar
retention-days: 5
73 changes: 73 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Auto Release on Version Change

on:
push:
branches: [ "master", "main" ]
paths: [ "pom.xml" ]

jobs:
check-and-release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 2

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'

- name: Install Local Dependencies
run: |
mvn install:install-file \
-Dfile=libs/PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar \
-DgroupId=org.github.paperspigot \
-DartifactId=paperspigot-api \
-Dversion=1.8.8-R0.1-SNAPSHOT \
-Dpackaging=jar \
-DgeneratePom=true

- name: Check for Version Change
id: check_version
run: |
# Get current version (-N = non-recursive, only main pom)
NEW_VERSION=$(mvn -N help:evaluate -Dexpression=project.version -q -DforceStdout)

# Get previous version (save previous pom to a temp file)
git show HEAD^:pom.xml > pom_old.xml
OLD_VERSION=$(mvn -N -f pom_old.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
rm pom_old.xml

echo "Previous version: $OLD_VERSION"
echo "Current version: $NEW_VERSION"

# Compare versions
if [ "$NEW_VERSION" != "$OLD_VERSION" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "Version change detected! ($OLD_VERSION -> $NEW_VERSION)"
else
echo "changed=false" >> $GITHUB_OUTPUT
echo "Version number did not change. Skipping release."
fi

- name: Build with Maven
if: steps.check_version.outputs.changed == 'true'
run: mvn -B clean install --file pom.xml

- name: Create GitHub Release
if: steps.check_version.outputs.changed == 'true'
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.check_version.outputs.version }}
name: ZonePractice v${{ steps.check_version.outputs.version }}
files: distribution/target/*.jar
generate_release_notes: true
3 changes: 1 addition & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
<groupId>org.github.paperspigot</groupId>
<artifactId>paperspigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${basedir}/../libs/PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
<scope>provided</scope>
</dependency>

<!-- Scoreboard API -->
Expand Down
5 changes: 1 addition & 4 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<defaultGoal>clean install</defaultGoal>
<finalName>ZonePractice Pro v6.22-SNAPSHOT</finalName>

<plugins>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -37,9 +37,6 @@
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<outputFile>${project.build.finalName}.jar</outputFile>

<createDependencyReducedPom>false</createDependencyReducedPom>

<artifactSet>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<dependency>
<groupId>net.wesjd</groupId>
<artifactId>anvilgui</artifactId>
<version>1.10.10-SNAPSHOT</version>
<version>1.10.11-SNAPSHOT</version>
</dependency>

<!-- BStats -->
Expand Down
3 changes: 1 addition & 2 deletions spigot_1_8_8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
<groupId>org.github.paperspigot</groupId>
<artifactId>paperspigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${basedir}/../libs/PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down