mill
mill copied to clipboard
Use newer resolve API from coursier
As part of experimenting the solution space for feature request https://github.com/com-lihaoyi/mill/issues/3075, I found that some resolution validation errors are only correctly detected, when the newer coursier API is used. Therefore I extracted some commits of PR https://github.com/com-lihaoyi/mill/pull/3084 into this standalone PR and fixed any issues on the way.
Changes:
- Use newer coursier
ResolveAPI to really detect conflicting dependencies - Introduce a new
CoursierModule.enforceSameDependencyVersions, which allows to sync versions for artifacts belonging to the same release, e.g.scala-libraryandscala-reflect.