mirror of https://github.com/sbt/sbt.git
Port source-dependencies/export-jars
This commit is contained in:
parent
06fa0c079e
commit
938de409ae
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
lazy val root = (project in file(".")).
|
||||
dependsOn(a)
|
||||
|
||||
lazy val a = (project in file("a"))
|
||||
|
|
@ -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"))
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue