You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer defaultResolver().classpath over Lib.resolveDependencies (#4727)
Whenever possible, this tries to make modules defined in Mill use
`CoursierModule#defaultResolver` or `CoursierModule#millResolver` to
resolve dependencies, rather than calling lower level helpers like `Lib.
resolveDependencies`. The former automatically take into account
customizations of resolution defined on `CoursierModule` and
`JavaModule` (`repositoriesTask`, `mapDependencies`, etc.), while these
have to be passed manually to `Lib.resolveDependencies`.
This helps when adding more parameters - these have to be passed to
`defaultResolver` / `millResolver`, and that's it, rather than also
having to inspect all calls to `Lib.resolveDependencies`, and passing
the new parameter there too.
This also tries to make resolution log to the task logger of the task
requesting the resolution, rather than the logger of
`CoursierModule#{defaultResolver,millResolver}`.
Pull request: #4727
0 commit comments