Models a JVM dependency for Java or Scala. Wraps an underlying coursier.Dependency, with a possible CrossVersion, and the ability to force the dependency to pin its exact version
Attributes
Members list
Value members
Concrete methods
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
Attributes
- Source
- Dep.scala
If scalaVersion is a Dotty version, replace the cross-version suffix by the Scala 2.x version that the Dotty version is retro-compatible with, otherwise do nothing.
If scalaVersion is a Dotty version, replace the cross-version suffix by the Scala 2.x version that the Dotty version is retro-compatible with, otherwise do nothing.
This setting is useful when your build contains dependencies that have only been published with Scala 2.x, if you have:
def mvnDeps = Seq(mvn"a::b:c")
you can replace it by:
def mvnDeps = Seq(mvn"a::b:c".withDottyCompat(scalaVersion()))
This will have no effect when compiling with Scala 2.x, but when compiling with Dotty this will change the cross-version to a Scala 2.x one. This works because Dotty is currently retro-compatible with Scala 2.x.
Attributes
- Source
- Dep.scala
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
- Source
- Product.scala