Repository navigation
Migrate build to Mill - #1
Merged
Merged
Conversation
Co-authored-by: lavrov <lavrov@users.noreply.github.com>
lavrov
marked this pull request as ready for review
October 10, 2026 14:30
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
millwrapper script (pinned via//| mill-version: 1.1.8frontmatter),build.millreplacingbuild.sbt/project/, and removal of all sbt filesprotocolis now a JVM-only Mill module. The sbt build cross-publishedprotocolJS, but the bittorrent library no longer publishes Scala.js artifacts (common_sjs1_3does not exist on Maven Central), so the Scala.js variant could not even resolve its dependencies; the webapp consumes only static assets and does not useprotocolJS./mill server.assembly→out/server/assembly.dest/out.jar) instead of the sbt-native-packager stage directory./mill; release workflow publishes via Mill'sSonatypeCentralPublishModule(same as bittorrent, needsMILL_SONATYPE_USERNAME/PASSWORDandMILL_PGP_*secrets)AGENTS.mdwith build commands, matching the bittorrent repositoryVerification
./mill __.compile— SUCCESS (protocol + server)./mill server.assembly— SUCCESS (40MB executable jar)java -jar out.jarboots the server, DHT bootstrap runsNote: the release workflow's secrets must be renamed from
SONATYPE_CREDS/PGP_SECRET_KEYto the Mill ones (MILL_SONATYPE_USERNAME,MILL_SONATYPE_PASSWORD,MILL_PGP_SECRET_BASE64,MILL_PGP_PASSPHRASE) before the next tagged release.