Dep

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

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

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
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 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

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product