build: resolve hytale server from remote maven + auto-bump#9
Open
johndoe1Johndoe wants to merge 4 commits intoHytaleOne:mainfrom
Open
build: resolve hytale server from remote maven + auto-bump#9johndoe1Johndoe wants to merge 4 commits intoHytaleOne:mainfrom
johndoe1Johndoe wants to merge 4 commits intoHytaleOne:mainfrom
Conversation
Drop libs/HytaleServer.jar (system scope) for
com.hypixel.hytale:Server from maven.hytale.com/release.
Generate manifest.json via hytale-manifest-maven-plugin
bound to ${hytale.server.version} so ServerVersion tracks
the compile target and clears the PluginManager target
version warning.
Daily scheduled job resolves the latest release from maven metadata, bumps hytale.server.version, runs full package as a gate, commits to main only on green.
Hytale Update 4 renamed ProtocolSettings.PROTOCOL_HASH (String) to PROTOCOL_CRC (int). Emit "%08X" over the wire to preserve the existing string-typed Protocol Hash field and avoid a client-visible break.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
com.hypixel.hytale:Serverfrom system-scopelibs/HytaleServer.jarto aprovided-scope dep resolved frommaven.hytale.com/release. Version tracked via a singlehytale.server.versionproperty.manifest.jsonat build time usingio.github.projectunified:hytale-manifest-maven-plugin, wired to the same property.ServerVersionalways matches the compile target, eliminating thePluginManager"does not specify a target server version" warning.src/main/resources/manifest.json(now generated intotarget/classes).HytaleServer.jardownload step from.github/workflows/ci.yml— no longer needed. Repo secretHYTALE_SERVER_JAR_URLcan be removed after merge..github/workflows/auto-bump-hytale.yml: scheduled daily job that resolves the latest Hytale release from maven metadata, bumps the property, runs a full package build as a gate, and commits tomainonly on green. API-breaking updates fail loudly instead of landing.ProtocolSettings.PROTOCOL_HASH(String) was renamed toPROTOCOL_CRC(int).ServerDataProvider.getProtocolHash()now emits"%08X"of the CRC to preserve the existing string-typedProtocol Hashfield on the OneQuery wire protocol — no client-visible break.docs/PROTOCOL.md.Maintainer notes
auto-bump-hytale.ymlpushes directly tomainasgithub-actions[bot]. Ifmainhas branch protection, either allow the bot to bypass or switch the workflow to PR mode (peter-evans/create-pull-request).HYTALE_SERVER_JAR_URLis no longer referenced; safe to delete from repo secrets after merge.Test plan
mvn clean package -DskipTestson clean checkout withoutlibs/HytaleServer.jar→ greentarget/classes/manifest.jsoncontains resolvedServerVersion(verified2026.03.26-89796e57b, Hytale Update 4)manifest.jsontarget server versionwarning andV1/V2basic responses carry the 8-char hexProtocol Hashauto-bump-hytaleworkflow on a scratch branch to verify the metadata fetch + sed path