Dep

mill.scalalib.Dep
See theDep companion object
case class Dep(dep: Dependency, cross: CrossVersion, force: Boolean)

Attributes

Companion
object
Source
Dep.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def artifactName(binaryVersion: String, fullVersion: String, platformSuffix: String): String

Attributes

Source
Dep.scala
def bindDep(binaryVersion: String, fullVersion: String, platformSuffix: String): BoundDep

Attributes

Source
Dep.scala
def configure(attributes: Attributes): Dep

Attributes

Source
Dep.scala
def exclude(exclusions: (String, String)*): Dep

Attributes

Source
Dep.scala
def excludeName(names: String*): Dep

Attributes

Source
Dep.scala
def excludeOrg(organizations: String*): Dep

Attributes

Source
Dep.scala
def forceVersion(): Dep

Attributes

Source
Dep.scala
def name: String

Attributes

Source
Dep.scala
def optional(optional: Boolean): Dep

Attributes

Source
Dep.scala
def organization: String

Attributes

Source
Dep.scala
def toDependency(binaryVersion: String, fullVersion: String, platformSuffix: String): Dependency

Attributes

Source
Dep.scala
def version: String

Attributes

Source
Dep.scala
def withConfiguration(configuration: String): Dep

Attributes

Source
Dep.scala
@Scaladoc(value = "/**\n * If scalaVersion is a Dotty version, replace the cross-version suffix\n * by the Scala 2.x version that the Dotty version is retro-compatible with,\n * otherwise do nothing.\n *\n * This setting is useful when your build contains dependencies that have only\n * been published with Scala 2.x, if you have:\n * {{{\n * def ivyDeps = Seq(ivy\"a::b:c\")\n * }}}\n * you can replace it by:\n * {{{\n * def ivyDeps = Seq(ivy\"a::b:c\".withDottyCompat(scalaVersion()))\n * }}}\n * This will have no effect when compiling with Scala 2.x, but when compiling\n * with Dotty this will change the cross-version to a Scala 2.x one. This\n * works because Dotty is currently retro-compatible with Scala 2.x.\n */")
def withDottyCompat(scalaVersion: String): Dep

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 ivyDeps = Seq(ivy"a::b:c")

you can replace it by:

def ivyDeps = Seq(ivy"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

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product