Skip to content

Add mill-repositories header to customize repository config globally, allow scala nightlies via repositories: - #6713

Merged
lihaoyi merged 27 commits into
com-lihaoyi:mainfrom
lihaoyi:header-global-repositories
Jan 29, 2026
Merged

lihaoyi merged 27 commits into
com-lihaoyi:mainfrom
lihaoyi:header-global-repositories

Conversation

@lihaoyi

@lihaoyi lihaoyi commented Jan 29, 2026 •

Copy link
Copy Markdown
Member

Two separate fixes:

  • Fixes Expose the YAML frontmatter configuration via a runtime APIΒ #5192 by supporting mill-repositories, which lets the user set the default repositories used throughout Mill: not just in modules but in workers, in the Mill bootstrap procress, etc. This is necessary for people who want to e.g. download Mill from their own mirror of maven central for security purposes, and need all artifacts to come from there instead. For now just hardcoding support for mill-repositories, since I can't think of use cases for exposing other things at the moment

  • Fixes Simplify usage of Scala 3 nightliesΒ #6631 by letting the scala-compiler-bridge downloads to use each module's individual repositories, rather than relying on the hardcoded global mill-repositories. So any module can set repositories to include the nightlies URL and set scalaVersion to be a nightly and have it just work

Covered by an integration and an example test respectively

@lihaoyi
lihaoyi force-pushed the header-global-repositories branch from bf7d074 to d4b20f4 Compare January 29, 2026 02:31
@lihaoyi
lihaoyi force-pushed the header-global-repositories branch from 19d3b2d to caaf494 Compare January 29, 2026 03:04
@lihaoyi
lihaoyi force-pushed the header-global-repositories branch from 06cf18b to 61ce7a5 Compare January 29, 2026 03:59
@lihaoyi lihaoyi changed the title Add mill-repositories header to customize repository config globally Add mill-repositories header to customize repository config globally, allow scala nightlies via repositories: Jan 29, 2026
@lihaoyi
lihaoyi force-pushed the header-global-repositories branch from 98bb347 to 4a20609 Compare January 29, 2026 08:25
@lihaoyi
lihaoyi merged commit 601c199 into com-lihaoyi:main Jan 29, 2026
2 checks passed
@lefou lefou added this to the 1.1.1 milestone Jan 29, 2026
lihaoyi pushed a commit that referenced this pull request Feb 13, 2026
…6819)

This gets rid of the need of `MILL_LOCAL_TEST_REPO` and
`MILL_USER_TEST_REPO` from
#5514, and manages those repos
solely via the `COURSIER_REPOSITORIES` environment variable. That way,
the repositories from `mill-repositories` of
#6713 automatically get
precedence over the former repos.

This addresses issues I've been seeing locally, where some artifacts
under `~/.ivy2/local` were being used by the JvmWorker, while they
shouldn't.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify usage of Scala 3 nightlies Expose the YAML frontmatter configuration via a runtime API

2 participants