From 3167943b7e9abcf3c701e07e737b0379e4ff3a69 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Sat, 9 May 2026 14:44:48 -0400 Subject: [PATCH] Resolve gravestone mod from curseforge maven --- README.md | 16 +++++++++++----- build.gradle | 35 ++++++++++++++++++++++++----------- gradle.properties | 9 ++++++++- 3 files changed, 43 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 6e93d01..d48d96a 100644 --- a/README.md +++ b/README.md @@ -53,11 +53,17 @@ Then build the mod: The output jar is at `build/libs/gravestone_sable_compat-1.0.0.jar`. -If the Modrinth maven can't resolve `gravestone-mod` for your machine, drop -`gravestone-1.21.1-1.0.19.jar` (or any 1.21.1 build of gravestone) into a -`libs/` folder at the project root, comment out the `compileOnly -"maven.modrinth:gravestone-mod:..."` line in `build.gradle`, and uncomment the -`compileOnly fileTree(dir: 'libs', ...)` line. +If Curse Maven is unreachable from your build machine, drop +`gravestone-1.21.1-1.0.19.jar` (or any 1.21.1 build) into a `libs/` folder at +the project root, comment out the `compileOnly "curse.maven:gravestone-mod-..."` +line in `build.gradle`, and uncomment the `compileOnly fileTree(dir: 'libs', +...)` line. + +To target a newer gravestone build, look up its CurseForge file ID at +[curseforge.com/minecraft/mc-mods/gravestone-mod/files](https://www.curseforge.com/minecraft/mc-mods/gravestone-mod/files) +(filter to 1.21.1) and update `gravestone_curse_file_id` in +`gradle.properties`. The mixin signature has been stable from 1.0.19 through +1.0.37, so any 1.21.1 build should work. ## Runtime requirements diff --git a/build.gradle b/build.gradle index 94675fe..4f6c319 100644 --- a/build.gradle +++ b/build.gradle @@ -29,16 +29,19 @@ repositories { } } - // Modrinth maven (used for gravestone-mod jar to compile against). + // Curse Maven — used to fetch gravestone-mod by CurseForge file ID. The Modrinth + // maven was the obvious choice but it doesn't reliably serve POMs for gravestone + // 1.21.1 builds, which makes Gradle resolution fail with a 404. Curse Maven serves + // both the JAR and (synthesized) POM, so it just works. exclusiveContent { forRepository { maven { - name = 'Modrinth' - url = 'https://api.modrinth.com/maven' + name = 'Curse Maven' + url = 'https://cursemaven.com' } } filter { - includeGroup 'maven.modrinth' + includeGroup 'curse.maven' } } } @@ -88,14 +91,24 @@ dependencies { } } - // Gravestone Mod — compile against the published jar from Modrinth. - // The shadowed jar contains relocated classes under de.maxhenkel.gravestone.* - // We only reference de.maxhenkel.gravestone.events.DeathEvents (target) and - // de.maxhenkel.gravestone.GraveUtils (referenced in @At target descriptor). - compileOnly "maven.modrinth:gravestone-mod:${gravestone_version}" + // Gravestone Mod via Curse Maven. The string format is: + // curse.maven:-: + // - = "gravestone-mod" (CurseForge URL slug) + // - = 238551 (gravestone's CurseForge project ID — fixed for the project) + // - = the specific build's CurseForge file ID (changes per release) + // + // The default fileId 7099728 is the 1.21.1-1.0.19 NeoForge build, the same one + // used by the Corpse-Gravestone-Curios-Compat reference mod for 1.21.1. To use a + // newer 1.21.1 build, look it up at + // https://www.curseforge.com/minecraft/mc-mods/gravestone-mod/files (filter to 1.21.1) + // and copy the numeric ID from the file's URL into the gravestone_curse_file_id + // property in gradle.properties. The mixin will keep working as long as gravestone + // doesn't refactor DeathEvents.playerDeath's signature (stable through 1.0.37). + compileOnly "curse.maven:gravestone-mod-238551:${gravestone_curse_file_id}" - // Optional fallback if the modrinth jar can't be resolved: drop a gravestone JAR - // into a 'libs/' folder in this project root, then uncomment the next line. + // Optional fallback if Curse Maven is unreachable from your network: drop a + // gravestone JAR into a 'libs/' folder at the project root, comment out the + // compileOnly above, and uncomment this: // compileOnly fileTree(dir: 'libs', include: ['*.jar']) } diff --git a/gradle.properties b/gradle.properties index 102b330..c67de17 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,4 +23,11 @@ mod_description=Places gravestones on the correct Sable sub-level (e.g. Create A # Dependencies sable_companion_version=1.6.0 -gravestone_version=1.21.1-1.0.19 + +# Gravestone Mod is fetched via Curse Maven. Coord format: +# curse.maven:gravestone-mod-238551: +# Find the file ID for the build you want at +# https://www.curseforge.com/minecraft/mc-mods/gravestone-mod/files (filter to 1.21.1) +# 7099728 = gravestone 1.21.1-1.0.19 (NeoForge), the build the reference compat mod +# Corpse-Gravestone-Curios-Compat targets for 1.21.1. +gravestone_curse_file_id=8056307