Bukkit Build Fix#494
Conversation
| distributionPath=wrapper/dists | ||
| distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26 | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip |
There was a problem hiding this comment.
why was the wrapper & whatnot not updated? did you update gradle using the wrapper task?
There was a problem hiding this comment.
Sorry haven't done many gradle upgrades, I used ./gradlew wrapper --gradle-version 8.12 and my gradle version when executing ./gradlew --version shows 8.12? Was there something I missed?
There was a problem hiding this comment.
hmm, my bad, I assumed that the wrapper jar had updated between 8.10.2 and 8.12. it seems that it has not.
is there a reason that 8.12 was used instead of 8.12.1 or 8.13?
also, I personally have a bash script called upgrade-gradle-wrapper which does the following
#!/bin/bash
WRAPPER_VERSION="$1"
WRAPPER_HASH=$(curl "https://services.gradle.org/distributions/gradle-$WRAPPER_VERSION-bin.zip.sha256" -L)
gradle wrapper --gradle-version="$WRAPPER_VERSION" --gradle-distribution-sha256-sum="$WRAPPER_HASH"There was a problem hiding this comment.
Thanks for the script, I was wondering how to check that hash. The reason for 8.12 was that Architectury devs recommend 8.11, while Paper devs recommend 8.13, and praise Notch they both allowed their libs to work with 8.12, which is currently the only thing I can find that works with both. I didn't try the minor version 8.12.1, I literally worked my way up from 8.10.2 that we were on until I had a working gradle, then stopped. I can give 8.12.1 a shot if you think it matters?
There was a problem hiding this comment.
give 8.13, a try. it should work, unless the architectury devs did smth incredibly dumb
There was a problem hiding this comment.
sigh. wtf is architectury doing that is breaking it.
| const val paperDevBundle = paperBuild | ||
| const val runPaper = "2.3.1" | ||
| const val paperWeight = "1.7.2" | ||
| const val paperWeight = "2.0.0-beta.16" |
There was a problem hiding this comment.
we should probably wait for a non-beta release
There was a problem hiding this comment.
Yeah I get that design decision, however from the Paper devs we're not going to be able to target 1.21.4 with paperDevBundle unless we're on this version and at least gradle 12.
Since bukkit wasn't building, and this isn't going to release yet I thought maybe that could justify using beta for paperDevBundle and Architectury, but if not I'll just keep this in my local fork to build & test for Paper.
There was a problem hiding this comment.
Yeah I get that design decision, however from the Paper devs we're not going to be able to target 1.21.4 with paperDevBundle unless we're on this version and at least gradle 12.
Since bukkit wasn't building, and this isn't going to release yet I thought maybe that could justify using beta for paperDevBundle and Architectury, but if not I'll just keep this in my local fork to build & test for Paper.
Can you send the message here?
having to go to a discord server that I'm not in, requiring me to leave a separate discord server (because I'm at server limit), is incredibly inconvenient.
There was a problem hiding this comment.
|
before merge, you should also squash all those commits into a single one |
|
Rather than me adding upstreams and doing an interactive rebase against the PolyDev remote followed by a force push, couldn't we just squash and merge here when this gets approved? I've already sunk a lot of time into this PR, kinda just want to get on with my testing. |
* Bukkit Build Fix * remove comments * remove papermc repo from gradle settings * add back gradle shasum * fix formatting, update gradle hash
* Bukkit Build Fix (#494) * Bukkit Build Fix * remove comments * remove papermc repo from gradle settings * add back gradle shasum * fix formatting, update gradle hash * Initial Fabric 1.21.5 * Updated dependencies * Updated SpawnerData with backwards compat * Updated dependencies * Updated setBlockState usage - needs verifying as flags are confusing * Refactored Bukkit NMS packages * Initial attempt at updating mixin-commons * Continue fabric 1.21.5 WIP * Some additional logging * Update deps * Build fixes and update allay * Add oak to authors --------- Co-authored-by: Mikal <Ifiht@users.noreply.github.com> Co-authored-by: OakLoaf <oak@beaconstudios.org>


Pull Request
Description
The build was not working for 1.21.4, looks like a combination of things, first the
paperBuildversion was outdated, then paperweight was complaining about:which according to the paper devs requires updating gradle to 8.13 and paperweight to the latest 2.0.0-beta (thank you hard fork..), however this breaks architectury so that then also needed upgraded. Details below.
Changelog
paperBuildversion to latest 2025 release for 1.21.4 (fixes first build error)gradle-wrapper.properties(prevents upgrading gradle)paperDevBundleconfiguration in Bukkit gradle build file (final build error gone!!!)Checklist
Mandatory checks
ver/prefix)or is a branch that is intended to be merged into a version branch.
CONTRIBUTING.mddocument in the root of the git repository.
Types of changes
Compatibility
Documentation
Testing
Licensing
release it under GPLv3.
released under GPLv3 or a compatible license.