abstract class CrossVersionFunctions extends AnyRef
- Alphabetic
- By Inheritance
- CrossVersionFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new 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
-
val
PartialVersion: Regex
Regular expression that extracts the major and minor components of a version into matched groups 1 and 2.
-
val
TransitionSbtVersion: String
The first
major.minorsbt version that the sbt binary version should be used for cross-versioning instead of the full version. -
val
TransitionScalaVersion: String
The first
major.minorScala version that the Scala binary version should be used for cross-versioning instead of the full version. -
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
scalaFullVersionandscalaBinaryVersionaccording to the ModuleID's cross-versioning setting. -
def
apply(module: ModuleID, is: Option[IvyScala]): Option[(String) ⇒ String]
Constructs the cross-version function defined by
moduleandis, if one is configured. -
def
apply(module: ModuleID, is: IvyScala): Option[(String) ⇒ String]
Constructs the cross-version function defined by
moduleandis, if one is configured. -
def
apply(cross: CrossVersion, fullVersion: String, binaryVersion: String): Option[(String) ⇒ String]
Construct a cross-versioning function given cross-versioning configuration
cross, full versionfullVersionand binary versionbinaryVersion.Construct a cross-versioning function given cross-versioning configuration
cross, full versionfullVersionand binary versionbinaryVersion. The behavior of the constructed function is as documented for the sbt.librarymanagement.CrossVersion datatypes. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
binary: CrossVersion
Cross-versions a module with the binary version (typically the binary Scala version).
-
def
binarySbtVersion(full: String): String
Computes the binary sbt version from the
fullversion.Computes the binary sbt version from the
fullversion. Full sbt versions earlier than sbt.librarymanagement.CrossVersion.TransitionSbtVersion are returned as is. -
def
binaryScalaVersion(full: String): String
Computes the binary Scala version from the
fullversion.Computes the binary Scala version from the
fullversion. Full Scala versions earlier than sbt.librarymanagement.CrossVersion.TransitionScalaVersion are returned as is. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
full: CrossVersion
Cross-versions a module with the full version (typically the full Scala version).
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSbtApiCompatible(v: String): Boolean
- def isScalaApiCompatible(v: String): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
partialVersion(s: String): Option[(Int, Int)]
Extracts the major and minor components of a version string
sor returnsNoneif the version is improperly formatted. -
def
patch: CrossVersion
Cross-versions a module with the full Scala version excluding any
-binsuffix. -
def
sbtApiVersion(v: String): Option[(Int, Int)]
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. Compatibile versions include 0.12.0-1 and 0.12.0-RC1 for Some(0, 12).
-
def
scalaApiVersion(v: String): Option[(Int, Int)]
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. Compatibile versions include 2.10.0-1 and 2.10.1-M1 for Some(2, 10), but not 2.10.0-RC1.
-
def
substituteCross(a: Artifact, cross: Option[(String) ⇒ String]): Artifact
Cross-versions
aaccording to cross-version functioncross. -
def
substituteCross(artifacts: Vector[Artifact], cross: Option[(String) ⇒ String]): Vector[Artifact]
Cross-version each
Artifactinartifactsaccording to cross-version functioncross. -
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
binaryVersion(full: String, cutoff: String): String
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use CrossVersion.scalaApiVersion or CrossVersion.sbtApiVersion
-
def
isStable(v: String): Boolean
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use CrossVersion.isScalaApiCompatible or CrossVersion.isSbtApiCompatible
-
def
selectVersion(full: String, binary: String): String
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use CrossVersion.scalaApiVersion or CrossVersion.sbtApiVersion