object CrossVersion extends CrossVersionFunctions with Serializable
- Alphabetic
- By Inheritance
- CrossVersion
- Serializable
- CrossVersionFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Binary = librarymanagement.Binary
- Definition Classes
- CrossVersionFunctions
- type Constant = librarymanagement.Constant
- Definition Classes
- CrossVersionFunctions
- type Full = librarymanagement.Full
- Definition Classes
- CrossVersionFunctions
- type Patch = librarymanagement.Patch
- Definition Classes
- CrossVersionFunctions
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final val Binary: librarymanagement.Binary.type
- Definition Classes
- CrossVersionFunctions
- final val Constant: librarymanagement.Constant.type
- Definition Classes
- CrossVersionFunctions
- final val Full: librarymanagement.Full.type
- Definition Classes
- CrossVersionFunctions
- val PartialVersion: Regex
Regular expression that extracts the major and minor components of a version into matched groups 1 and 2.
Regular expression that extracts the major and minor components of a version into matched groups 1 and 2.
- Definition Classes
- CrossVersionFunctions
- final val Patch: librarymanagement.Patch.type
- Definition Classes
- CrossVersionFunctions
- val TransitionSbtVersion: String
The first
major.minor
sbt version that the sbt binary version should be used for cross-versioning instead of the full version.The first
major.minor
sbt version that the sbt binary version should be used for cross-versioning instead of the full version.- Definition Classes
- CrossVersionFunctions
- val TransitionScalaVersion: String
The first
major.minor
Scala version that the Scala binary version should be used for cross-versioning instead of the full version.The first
major.minor
Scala version that the Scala binary version should be used for cross-versioning instead of the full version.- Definition Classes
- CrossVersionFunctions
- def apply(scalaFullVersion: String, scalaBinaryVersion: String): (ModuleID) => ModuleID
Constructs a function that will cross-version a ModuleID for the given full and binary Scala versions
scalaFullVersion
andscalaBinaryVersion
according to the ModuleID's cross-versioning setting.Constructs a function that will cross-version a ModuleID for the given full and binary Scala versions
scalaFullVersion
andscalaBinaryVersion
according to the ModuleID's cross-versioning setting.- Definition Classes
- CrossVersionFunctions
- def apply(module: ModuleID, is: Option[ScalaModuleInfo]): Option[(String) => String]
Constructs the cross-version function defined by
module
andis
, if one is configured.Constructs the cross-version function defined by
module
andis
, if one is configured.- Definition Classes
- CrossVersionFunctions
- def apply(module: ModuleID, is: ScalaModuleInfo): Option[(String) => String]
Constructs the cross-version function defined by
module
andis
, if one is configured.Constructs the cross-version function defined by
module
andis
, if one is configured.- Definition Classes
- CrossVersionFunctions
- def apply(cross: CrossVersion, fullVersion: String, binaryVersion: String): Option[(String) => String]
Construct a cross-versioning function given cross-versioning configuration
cross
, full versionfullVersion
and binary versionbinaryVersion
.Construct a cross-versioning function given cross-versioning configuration
cross
, full versionfullVersion
and binary versionbinaryVersion
. The behavior of the constructed function is as documented for the sbt.librarymanagement.CrossVersion datatypes.- Definition Classes
- CrossVersionFunctions
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def binary: CrossVersion
Cross-versions a module with the binary version (typically the binary Scala version).
Cross-versions a module with the binary version (typically the binary Scala version).
- Definition Classes
- CrossVersionFunctions
- def binarySbtVersion(full: String): String
Computes the binary sbt version from the
full
version.Computes the binary sbt version from the
full
version. Full sbt versions earlier than sbt.librarymanagement.CrossVersion.TransitionSbtVersion are returned as is.- Definition Classes
- CrossVersionFunctions
- def binaryScalaVersion(full: String): String
Computes the binary Scala version from the
full
version.Computes the binary Scala version from the
full
version. Full Scala versions earlier than sbt.librarymanagement.CrossVersion.TransitionScalaVersion are returned as is.- Definition Classes
- CrossVersionFunctions
- def binaryWith(prefix: String, suffix: String): CrossVersion
Cross-versions a module with the result of prepending
prefix
and appendingsuffix
to the binary version (typically the binary Scala version).Cross-versions a module with the result of prepending
prefix
and appendingsuffix
to the binary version (typically the binary Scala version). See also sbt.librarymanagement.Binary.- Definition Classes
- CrossVersionFunctions
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def constant(value: String): CrossVersion
Cross-versions a module with a constant string (typically the binary Scala version).
Cross-versions a module with a constant string (typically the binary Scala version).
- Definition Classes
- CrossVersionFunctions
- def disabled: CrossVersion
Disables cross versioning for a module.
Disables cross versioning for a module.
- Definition Classes
- CrossVersionFunctions
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def for2_13Use3: CrossVersion
Cross-versions a module with the binary version but if the binary version is 2.13 cross-versions it with 3 instead
Cross-versions a module with the binary version but if the binary version is 2.13 cross-versions it with 3 instead
- Definition Classes
- CrossVersionFunctions
- def for2_13Use3With(prefix: String, suffix: String): CrossVersion
Cross-versions a module with the binary version but if the binary version is 2.13 cross-versions it with 3 instead Always prepend
prefix
and appendsuffix
Cross-versions a module with the binary version but if the binary version is 2.13 cross-versions it with 3 instead Always prepend
prefix
and appendsuffix
- Definition Classes
- CrossVersionFunctions
- def for3Use2_13: CrossVersion
Cross-versions a module with the binary version but if the binary version is 3 (or of the form 3.0.0-x), cross-versions it with 2.13 instead
Cross-versions a module with the binary version but if the binary version is 3 (or of the form 3.0.0-x), cross-versions it with 2.13 instead
- Definition Classes
- CrossVersionFunctions
- def for3Use2_13With(prefix: String, suffix: String): CrossVersion
Cross-versions a module with the binary version but if the binary version is 3 (or of the form 3.0.0-x), cross-versions it with 2.13 instead Always prepend
prefix
and appendsuffix
Cross-versions a module with the binary version but if the binary version is 3 (or of the form 3.0.0-x), cross-versions it with 2.13 instead Always prepend
prefix
and appendsuffix
- Definition Classes
- CrossVersionFunctions
- def full: CrossVersion
Cross-versions a module with the full version (typically the full Scala version).
Cross-versions a module with the full version (typically the full Scala version).
- Definition Classes
- CrossVersionFunctions
- def fullWith(prefix: String, suffix: String): CrossVersion
Cross-versions a module with the result of prepending
prefix
and appendingsuffix
to the full version.Cross-versions a module with the result of prepending
prefix
and appendingsuffix
to the full version. (typically the full Scala version). See also sbt.librarymanagement.Full- Definition Classes
- CrossVersionFunctions
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSbtApiCompatible(v: String): Boolean
- Definition Classes
- CrossVersionFunctions
- def isScalaApiCompatible(v: String): Boolean
- Definition Classes
- CrossVersionFunctions
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partialVersion(s: String): Option[(Long, Long)]
Extracts the major and minor components of a version string
s
or returnsNone
if the version is improperly formatted.Extracts the major and minor components of a version string
s
or returnsNone
if the version is improperly formatted.- Definition Classes
- CrossVersionFunctions
- def patch: CrossVersion
Cross-versions a module with the full Scala version excluding any
-bin
suffix.Cross-versions a module with the full Scala version excluding any
-bin
suffix.- Definition Classes
- CrossVersionFunctions
- def sbtApiVersion(v: String): Option[(Long, Long)]
Returns sbt binary interface x.y API compatible with the given version string v.
Returns sbt binary interface x.y API compatible with the given version string v. RCs for x.y.0 are considered API compatible. Compatible versions include 0.12.0-1 and 0.12.0-RC1 for Some(0, 12).
- Definition Classes
- CrossVersionFunctions
- def scalaApiVersion(v: String): Option[(Long, Long)]
Returns Scala binary interface x.y API compatible with the given version string v.
Returns Scala binary interface x.y API compatible with the given version string v. Compatible versions include 2.10.0-1 and 2.10.1-M1 for Some(2, 10), but not 2.10.0-RC1.
- Definition Classes
- CrossVersionFunctions
- def substituteCross(a: Artifact, cross: Option[(String) => String]): Artifact
Cross-versions
a
according to cross-version functioncross
.Cross-versions
a
according to cross-version functioncross
.- Definition Classes
- CrossVersionFunctions
- def substituteCross(artifacts: Vector[Artifact], cross: Option[(String) => String]): Vector[Artifact]
Cross-version each
Artifact
inartifacts
according to cross-version functioncross
.Cross-version each
Artifact
inartifacts
according to cross-version functioncross
.- Definition Classes
- CrossVersionFunctions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- final val Disabled: librarymanagement.Disabled.type
Compatibility with 0.13
Compatibility with 0.13
- Definition Classes
- CrossVersionFunctions
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) use CrossVersion.disabled instead. prior to sbt 1.3.0, Diabled did not work without apply(). sbt/sbt#4977