2015-08-19 09:56:08 +02:00
|
|
|
import sbt._
|
|
|
|
|
import Keys._
|
|
|
|
|
|
|
|
|
|
object Dependencies {
|
2016-05-05 04:49:03 +02:00
|
|
|
lazy val scala211 = "2.11.8"
|
2015-09-02 09:03:20 +02:00
|
|
|
|
2016-05-11 19:57:14 +02:00
|
|
|
val ioVersion = "1.0.0-M6"
|
|
|
|
|
val utilVersion = "0.1.0-M13"
|
2015-09-02 09:03:20 +02:00
|
|
|
lazy val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
2015-09-02 08:59:00 +02:00
|
|
|
lazy val utilCollection = "org.scala-sbt" %% "util-collection" % utilVersion
|
|
|
|
|
lazy val utilLogging = "org.scala-sbt" %% "util-logging" % utilVersion
|
2015-09-05 11:32:07 +02:00
|
|
|
lazy val utilTesting = "org.scala-sbt" %% "util-testing" % utilVersion
|
Implement static launcher for sbt
This is a combination of 13 commits. I squashed these 13 commits to make
forward porting those changes easier, since some commit undo the changes
of other commits.
The PRs that include these changes can be found at
https://github.com/sbt/sbt/pull/2564 and
https://github.com/sbt/sbt/pull/2576.
Static launcher, get bridge sources from resources
This commit introduces a new "static" launcher that does not use Ivy to
gather all the artifacts that it requires, but rather expect them to be
immediately available.
To be able to use sbt without Internet access, we add a new
`ComponentCompiler` that is able to retrieve the bridge sources from the
resources on classpath and compile it.
Fix classpath issues in static launcher
The launcher defines a top classloader that willbe used by all
`ScalaInstance`s. Previously, this top classloader had a parent that
contained the scala library 2.10, which prevented the correct
compilation of the compiler bridge for scala 2.11.
Also, we no longer need the scala-reflect JAR.
Tests for FakeResolver
Add `scala-reflect.jar` to JARs of `StaticScalaProvider`
It turns out we need to have `scala-reflect.jar` on classpath to compile
the compiler bridge for the static scala instance of the launcher.
Comply to Ivy's specification in `FakeResolver`
Remove `CompilerBridgeProvider` and `ResourceBridgeProvider`
It turns out that we can leverage the`FakeResolver` that has been
implemented to use with the static launcher, and resolve a "fake
compiler bridge" using it, rather than copying it from the resources.
This also has the advantage of not requiring to change the build
definition.
Fix NPE in FakeResolver
Add compiler bridge sources to fake resolver
This allows sbt to resolve the compiler bridge sources when using the
static launcher
Don't hardcode sbt version in static launcher
Add scala compiler and library to fake resolver
This allows us to still resolve them if we have no other resolver
configured.
Add `RepositoriesParser`
This parser is used by the static launcher to parse the definition of
resolvers that override the build resolvers.
Support repositories override in static launcher
The static launcher will now parse user-defined repositories like the
usual launcher does.
Specifically, the static launcher now uses the following configuration:
- `sbt.boot.directory`: specifies the boot directory that sbt will use.
Defaults to `~/.sbt/boot`.
- `sbt.override.build.repos`: indicate whether we want to override the
build resolvers. Defaults to false.
- `sbt.repository.config`: specifies the path to the files that
contains repositories definition. Defaults to
`${sbt.boot.directory}/repositories`.
Notes for sbt/sbt#2564 & sbt/sbt#2576
2016-04-06 11:52:51 +02:00
|
|
|
lazy val utilCompletion = "org.scala-sbt" %% "util-completion" % utilVersion
|
2015-08-19 09:56:08 +02:00
|
|
|
|
2016-05-05 04:49:03 +02:00
|
|
|
lazy val launcherInterface = "org.scala-sbt" % "launcher-interface" % "1.0.0"
|
2015-12-30 13:21:07 +01:00
|
|
|
lazy val ivy = "org.scala-sbt.ivy" % "ivy" % "2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a"
|
2015-08-19 09:56:08 +02:00
|
|
|
lazy val jsch = "com.jcraft" % "jsch" % "0.1.46" intransitive ()
|
|
|
|
|
lazy val sbtSerialization = "org.scala-sbt" %% "serialization" % "0.1.2"
|
|
|
|
|
lazy val scalaReflect = Def.setting { "org.scala-lang" % "scala-reflect" % scalaVersion.value }
|
|
|
|
|
}
|