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 Resolve API 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-library and scala-reflect.
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:
Resolve
API to really detect conflicting dependenciesCoursierModule.enforceSameDependencyVersions
, which allows to sync versions for artifacts belonging to the same release, e.g.scala-library
andscala-reflect
.