mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +02:00
Adding scalaOrg setting key for scala clones.
Adding scalaOrg key that specifies organization (artifactId) of scala used in the project. The change does not affect version checks for dependecies and LauncherConfiguration. Modified scalaProvider cache in Launcher to use (scalaOrg, version) as a key. Downloaded jars are stored in the folder scala-.../lig-<scalaOrg> if scalaOrg is not default. scala-org is an advanced setting so it can not be used in build.sbt.
This commit is contained in:
@@ -22,6 +22,9 @@ final class ScalaInstance(val version: String, val loader: ClassLoader, val libr
|
||||
object ScalaInstance
|
||||
{
|
||||
val VersionPrefix = "version "
|
||||
|
||||
def apply(org: String, version: String, launcher: xsbti.Launcher): ScalaInstance =
|
||||
apply(version, launcher.getScala(org, version, ""))
|
||||
/** Creates a ScalaInstance using the given provider to obtain the jars and loader.*/
|
||||
def apply(version: String, launcher: xsbti.Launcher): ScalaInstance =
|
||||
apply(version, launcher.getScala(version))
|
||||
|
||||
Reference in New Issue
Block a user