Add support for global excluding of transitive dependencies #3354
Labels
coursier
Issues tied with coursier integration.
dependency management
Issues tied to how the CLI manages project dependencies.
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
We'd like a way to globally exclude transitive dependencies, rather than doing it via individual dep param (
exclude=*
, as described in https://scala-cli.virtuslab.org/docs/guides/introduction/dependencies/#excluding-transitive-dependencies).Describe the solution you'd like
using
directive://> using dep.exclude org.scala-lang.modules::scala-collection-compat:2.12.0
--dependency-exclude org.scala-lang.modules::scala-collection-compat:2.12.0
//> using dep.exclude org.scala-lang.modules::scala-collection-compat
would get rid of all transitivescala-collection-compat
Describe alternatives you've considered
Keep excluding per dependency, when necessary.
Additional context
Initially suggested by @prolativ.
The text was updated successfully, but these errors were encountered: