JvmWorkerUtil

mill.javalib.api.JvmWorkerUtil
object JvmWorkerUtil

Attributes

Source
JvmWorkerUtil.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def enforceScala213Library(scalaVersion: String): Boolean

Checks whether the version of the scala-library should be 2.13.x or just match the given scalaVersion

Checks whether the version of the scala-library should be 2.13.x or just match the given scalaVersion

Background: To help in Scala 3 adoption and ensure binary compatibility, Scala 3.x up to 3.7.x used the same Scala standard library as Scala 2.13. Since this also hinders further improvements of the standard library, Scala 3.8 will ship with a newer library built with a Scala 3 compiler.

Value parameters

scalaVersion

The Scala version

Attributes

Returns

true if the scala-library version should be enforced to be a 2.13.

Source
JvmWorkerUtil.scala
def grepJar(classPath: Seq[PathRef], name: String, versionPrefix: String, sources: Boolean): PathRef

Attributes

Source
JvmWorkerUtil.scala
def isBinaryBridgeAvailable(scalaVersion: String): Boolean

Attributes

Returns

true if the compiler bridge can be downloaded as an already compiled jar

Source
JvmWorkerUtil.scala
def isDotty(scalaVersion: String): Boolean

Attributes

Source
JvmWorkerUtil.scala
def isDottyOrScala3(scalaVersion: String): Boolean

Attributes

Source
JvmWorkerUtil.scala
def isScala3(scalaVersion: String): Boolean

Attributes

Source
JvmWorkerUtil.scala
def isScala3Milestone(scalaVersion: String): Boolean

Attributes

Source
JvmWorkerUtil.scala
def matchingVersions(version: String): Seq[String]

Given a version string using a semantic versioning scheme (like x.y.z) it returns all the sub-versions in it (major, minor, patch, etc.). For example, matchingVersions("2.0.0") returns "2.0.0", "2.0" and "2"

Given a version string using a semantic versioning scheme (like x.y.z) it returns all the sub-versions in it (major, minor, patch, etc.). For example, matchingVersions("2.0.0") returns "2.0.0", "2.0" and "2"

Attributes

Source
JvmWorkerUtil.scala
def scalaBinaryVersion(scalaVersion: String): String

Attributes

Source
JvmWorkerUtil.scala
def scalaJSBinaryVersion(scalaJSVersion: String): String

Attributes

Source
JvmWorkerUtil.scala
def scalaJSWorkerVersion(scalaJSVersion: String): String

Attributes

Source
JvmWorkerUtil.scala
def scalaNativeBinaryVersion(version: String): String

Attributes

Source
JvmWorkerUtil.scala
def scalaNativeWorkerVersion(version: String): String

Attributes

Source
JvmWorkerUtil.scala
def versionRanges(version: String, allVersions: Seq[String]): Seq[String]

Given a version string and the sequence of all the possible versions strings using a semantic versioning scheme (like x.y.z) it returns all the version ranges that contain version for all sub-version (major, minor, patch) in allVersions. For example, versionRanges("2.0", Seq("1.0", "2.0", "3.0")) returns versions like "1+", "3-", "3.0-", "2+", "2-" and so on.

Given a version string and the sequence of all the possible versions strings using a semantic versioning scheme (like x.y.z) it returns all the version ranges that contain version for all sub-version (major, minor, patch) in allVersions. For example, versionRanges("2.0", Seq("1.0", "2.0", "3.0")) returns versions like "1+", "3-", "3.0-", "2+", "2-" and so on.

Attributes

Source
JvmWorkerUtil.scala

Concrete fields

val DottyNightlyVersion: Regex

Attributes

Source
JvmWorkerUtil.scala
val DottyVersion: Regex

Attributes

Source
JvmWorkerUtil.scala

Attributes

Source
JvmWorkerUtil.scala
val NightlyVersion: Regex

Attributes

Source
JvmWorkerUtil.scala
val PartialVersion: Regex

Attributes

Source
JvmWorkerUtil.scala
val ReleaseVersion: Regex

Attributes

Source
JvmWorkerUtil.scala
val Scala3EarlyVersion: Regex

Attributes

Source
JvmWorkerUtil.scala
val Scala3Version: Regex

Attributes

Source
JvmWorkerUtil.scala
val TypelevelVersion: Regex

Attributes

Source
JvmWorkerUtil.scala
lazy val millCompilerBridgeScalaVersions: Set[String]

Attributes

Source
JvmWorkerUtil.scala