JvmWorkerUtil

mill.javalib.api.JvmWorkerUtil
object JvmWorkerUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

@Scaladoc(value = "/**\n * Checks whether the version of the scala-library should be `2.13.x` or just match the given `scalaVersion`\n *\n * Background:\n * To help in Scala 3 adoption and ensure binary compatibility,\n * Scala 3.x up to 3.7.x used the same Scala standard library as Scala 2.13.\n * Since this also hinders further improvements of the standard library,\n * Scala 3.8 will ship with a newer library built with a Scala 3 compiler.\n *\n * @param scalaVersion The Scala version\n * @return `true` if the scala-library version should be enforced to be a `2.13.`\n */")
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.

def grepJar(classPath: Seq[PathRef], name: String, versionPrefix: String, sources: Boolean): PathRef
@Scaladoc(value = "/** @return true if the compiler bridge can be downloaded as an already compiled jar */")
def isBinaryBridgeAvailable(scalaVersion: String): Boolean

Attributes

Returns

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

def isDotty(scalaVersion: String): Boolean
def isDottyOrScala3(scalaVersion: String): Boolean
def isScala3(scalaVersion: String): Boolean
def isScala3Milestone(scalaVersion: String): Boolean
@Scaladoc(value = "/**\n * Given a version string using a semantic versioning scheme (like x.y.z) it\n * returns all the sub-versions in it (major, minor, patch, etc.).\n * For example, matchingVersions(\"2.0.0\") returns \"2.0.0\", \"2.0\" and \"2\"\n */")
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

def scalaBinaryVersion(scalaVersion: String): String
def scalaJSBinaryVersion(scalaJSVersion: String): String
def scalaJSWorkerVersion(scalaJSVersion: String): String
def scalaNativeBinaryVersion(version: String): String
def scalaNativeWorkerVersion(version: String): String
@Scaladoc(value = "/**\n * Given a version string and the sequence of all the possible versions strings\n * using a semantic versioning scheme (like x.y.z) it returns all the version\n * ranges that contain `version` for all sub-version (major, minor, patch) in\n * `allVersions`.\n * For example, `versionRanges(\"2.0\", Seq(\"1.0\", \"2.0\", \"3.0\"))` returns versions\n * like `\"1+\"`, `\"3-\"`, `\"3.0-\"`, `\"2+\"`, `\"2-\"` and so on.\n */")
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

Concrete fields

val DottyNightlyVersion: Regex
val DottyVersion: Regex
val NightlyVersion: Regex
val PartialVersion: Regex
val ReleaseVersion: Regex
val Scala3EarlyVersion: Regex
val Scala3Version: Regex
val TypelevelVersion: Regex
lazy val millCompilerBridgeScalaVersions: Set[String]