Fix buildscript, update shadowJar to V9

This commit is contained in:
Axionize committed 2025-11-13 03:54:29 -05:00
1 parent c6df9f029a
commit 2bfd3c48b6
5 files changed
+9 -23

No files matched your search

-13
View File
@@ -40,19 +40,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Temporary tasks so built jar works because PacketEvents won't merge my fixes for their broken fabric support
- name: Clone Axionize's PacketEvents Repository
run: |
git clone -b fix/fabric-events https://github.com/Axionize/packetevents.git packetevents
cd packetevents
echo "Cloned PacketEvents repository"
- name: Build and Publish PacketEvents to Maven Local
uses: gradle/actions/setup-gradle@v3
with:
build-root-directory: packetevents
arguments: publishToMavenLocal
- name: Update version in build.gradle.kts
id: update_version
run: |
+3 -3
View File
@@ -2,7 +2,7 @@ import java.io.ByteArrayOutputStream
plugins {
id("java")
id("com.gradleup.shadow") version "8.3.3" apply false
id("com.gradleup.shadow") version "9.2.2" apply false
id("fabric-loom") version "1.11.8" apply false
}
@@ -60,7 +60,8 @@ allprojects {
ext["githubRepo"] = githubRepo
repositories {
mavenLocal()
// mavenLocal()
maven("https://repo.grim.ac/snapshots")
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.codemc.io/repository/maven-releases/")
@@ -71,7 +72,6 @@ allprojects {
}
maven("https://libraries.minecraft.net/")
maven("https://maven.neoforged.net/releases")
maven("https://repo.codemc.io/repository/maven-snapshots/")
}
}
+3 -3
View File
@@ -40,9 +40,9 @@ dependencies {
shadeThisThing(implementation("org.kohsuke:github-api:1.326")!!)
if (shadePE) {
shadeThisThing(implementation("com.github.retrooper:packetevents-spigot:2.10.1-SNAPSHOT")!!)
shadeThisThing(implementation("com.github.retrooper:packetevents-spigot:2.10.2+8c92928-SNAPSHOT")!!)
} else {
compileOnly("com.github.retrooper:packetevents-spigot:2.10.1-SNAPSHOT")
compileOnly("com.github.retrooper:packetevents-spigot:2.10.2+8c92928-SNAPSHOT")
}
shadeThisThing(implementation("org.incendo:cloud-paper:2.0.0-beta.13")!!)
shadeThisThing(implementation("org.incendo:cloud-core:2.0.0")!!)
@@ -60,7 +60,7 @@ tasks.withType<ShadowJar> {
archiveClassifier.set("")
configurations = listOf(shadeThisThing)
isEnableRelocation = true
enableAutoRelocation = true
relocationPrefix = "${project.property("maven_group")}.${project.property("archives_base_name")}.shaded"
}
+2 -2
View File
@@ -13,9 +13,9 @@ dependencies {
// Shaded in or bundled by platform-specific code
if (shadePE) {
implementation("com.github.retrooper:packetevents-api:2.10.1-SNAPSHOT")
implementation("com.github.retrooper:packetevents-api:2.10.2+8c92928-SNAPSHOT")
} else {
compileOnly("com.github.retrooper:packetevents-api:2.10.1-SNAPSHOT")
compileOnly("com.github.retrooper:packetevents-api:2.10.2+8c92928-SNAPSHOT")
}
implementation("org.yaml:snakeyaml:2.0")
+1 -2
View File
@@ -1,6 +1,5 @@
plugins {
id("fabric-loom")
id("com.gradleup.shadow")
}
loom {
@@ -39,7 +38,7 @@ dependencies {
modImplementation(fabricApi.module("fabric-events-interaction-v0", "${rootProject.property("fabric_version")}"))
include(modImplementation("me.lucko:fabric-permissions-api:0.3.1")!!)
include(modImplementation("com.github.retrooper:packetevents-fabric:2.10.1-SNAPSHOT")!!)
include(modImplementation("com.github.retrooper:packetevents-fabric:2.10.2+8c92928-SNAPSHOT")!!)
include(modImplementation("org.incendo:cloud-fabric:2.0.0-beta.13")!!)
include(implementation("org.incendo:cloud-minecraft-extras:2.0.0-beta.10")!!)