Skip to content

Commit b3052bb

Browse files
committed
chore: update dependencies and improve GitHub Actions workflow
- Updated `io.github.togar2:MinestomPvP` dependency to a specific commit in `build.gradle.kts`. - Removed unused JitPack repository. - Upgraded Gradle wrapper to version 9.2.1. - Enhanced GitHub Actions workflow: - Adjusted branch/tag triggers to match all pushes and version tags. - Added `fetch-depth: 0` for proper tag history in the checkout step. - Updated JDK version to 25 for consistency. - Added conditional publishing for versioned tags only.
1 parent 4dac14b commit b3052bb

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
name: Build, Test, and Publish
2-
1+
# Build, Test, and Publish
2+
#
3+
# - Runs on any push (any branch) and on pushed tags matching v*
4+
# - The publish step only runs when the ref is a tag that starts with "v"
35
on:
46
push:
7+
branches:
8+
- '**'
59
tags:
610
- 'v*'
711

@@ -11,12 +15,14 @@ jobs:
1115
steps:
1216
- name: Checkout repository
1317
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1420

15-
- name: Set up JDK 21
21+
- name: Set up JDK 25
1622
uses: actions/setup-java@v4
1723
with:
1824
distribution: 'temurin'
19-
java-version: '21'
25+
java-version: '25'
2026

2127
- name: Grant execute permission for gradlew
2228
run: chmod +x gradlew
@@ -38,7 +44,8 @@ jobs:
3844
run: ./gradlew test
3945

4046
- name: Publish to UTF MVN Repository
47+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
4148
env:
4249
UTF_MVN_USER: ${{ secrets.UTF_MVN_USER }}
4350
UTF_MVN_PASS: ${{ secrets.UTF_MVN_PASS }}
44-
run: ./gradlew publishAllPublicationsToUtfMvnRepository
51+
run: ./gradlew publishAllPublicationsToUtfMvnRepository
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Sep 06 18:41:36 BST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

minestom/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ plugins {
66
repositories {
77
mavenCentral()
88
maven { url = uri("https://mvn.utf.lol/releases") }
9-
maven { url = uri("https://jitpack.io") }
109
maven("https://repo.panda-lang.org/releases")
1110
}
1211

1312
dependencies {
1413

1514
compileOnly("net.minestom:minestom:2025.10.31-1.21.10")
16-
compileOnly("com.github.TogAr2:MinestomPvP:56a831b41c")
15+
compileOnly("io.github.togar2:MinestomPvP:60152fa5eb")
1716
api(project(":core"))
1817
compileOnly("org.readutf.buildformat:common:v2.0.10")
1918

0 commit comments

Comments
 (0)