mill icon indicating copy to clipboard operation
mill copied to clipboard

Use newer resolve API from coursier

Open lefou opened this issue 1 year ago • 0 comments

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.

lefou avatar May 25 '24 12:05 lefou