Port source-dependencies/export-jars

This commit is contained in:
Eugene Yokota 2016-03-28 20:39:59 -04:00
parent 06fa0c079e
commit 938de409ae
5 changed files with 20 additions and 28 deletions

View File

@ -0,0 +1,15 @@
lazy val root = (project in file("."))
lazy val a = proj(project in file("a"))
lazy val b = proj(project in file("b"))
lazy val c = proj(project in file("c"))
def proj(p: Project): Project =
p.settings(
ivyPaths <<= (baseDirectory in root, target in root)( (dir, t) => new IvyPaths(dir, Some(t / "ivy-cache"))),
resolvers <+= appConfiguration { app => // need this to resolve sbt
val ivyHome = Classpaths.bootIvyHome(app) getOrElse sys.error("Launcher did not provide the Ivy home directory.")
Resolver.file("real-local", ivyHome / "local")(Resolver.ivyStylePatterns)
},
resolvers += Resolver.typesafeIvyRepo("releases") // not sure why this isn't included by default
)

View File

@ -1,19 +0,0 @@
import sbt._
import Import._
import Keys._
object Build extends Build
{
lazy val root = Project("root", file("."))
lazy val a = project("a")
lazy val b = project("b")
lazy val c = project("c")
def project(s: String) = Project(s, file(s)) settings(
ivyPaths <<= (baseDirectory in root, target in root)( (dir, t) => new IvyPaths(dir, Some(t / "ivy-cache"))),
resolvers <+= appConfiguration { app => // need this to resolve sbt
val ivyHome = Classpaths.bootIvyHome(app) getOrElse sys.error("Launcher did not provide the Ivy home directory.")
Resolver.file("real-local", ivyHome / "local")(Resolver.ivyStylePatterns)
},
resolvers += Resolver.typesafeIvyRepo("releases") // not sure why this isn't included by default
)
}

View File

@ -0,0 +1,4 @@
lazy val root = (project in file(".")).
dependsOn(a)
lazy val a = (project in file("a"))

View File

@ -1,8 +0,0 @@
import sbt._
import Import._
object Build extends Build
{
lazy val root = Project("root", file(".")) dependsOn(a)
lazy val a = Project("a", file("a"))
}

View File

@ -12,7 +12,7 @@ $ copy-file changes/A3.scala a/A.scala
$ sleep 2000
> run 3
$ copy-file changes/build2.sbt build.sbt
$ copy-file changes/build2.sbt build2.sbt
> reload
$ copy-file changes/A1.scala a/A.scala