com-lihaoyi / mill

Mill is a fast JVM build tool that supports Java and Scala. 2-3x faster than Gradle and 5-10x faster than Maven for common workflows, Mill aims to make your project’s build process performant, maintainable, and flexible
https://mill-build.org/
MIT License
2.04k stars 331 forks source link

Exclude mill provided dependencies in meta builds #3189

Closed lefou closed 4 months ago

lefou commented 4 months ago

This should fix issues where plugins bring in potentially incompatible or duplicate version of an already provided Mill dependency.

We override resolveDeps and exclude all provided mill artifacts. Direct dependency are not filtered out, only transitive onces. If exclusions turn out to be a problem in some setups, the protected resolveDepsExclusions target can be customized, e.g. by returning an empty set of exclusions.