Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
build: use project macro
  • Loading branch information
nafg committed Jul 31, 2015
1 parent 7d8d49b commit ecdc1ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
34 changes: 17 additions & 17 deletions project/Build.scala
Expand Up @@ -47,37 +47,37 @@ object ReactiveBuild extends Build {

val nonPublishingSettings = defaults :+ (publish := ())

lazy val reactive_core = Project("core", file("reactive-core"))
lazy val core = (project in file("reactive-core"))
.settings(publishingSettings: _*)

lazy val reactive_routing = Project("routing", file("reactive-routing"))
lazy val routing = (project in file("reactive-routing"))
.settings(publishingSettings: _*)

lazy val reactive_transport = Project("transport", file("reactive-transport"))
lazy val transport = (project in file("reactive-transport"))
.settings(publishingSettings: _*)
.dependsOn(reactive_core)
.dependsOn(core)

lazy val reactive_web = Project("web", file("reactive-web"))
lazy val web = (project in file("reactive-web"))
.settings(publishingSettings: _*)
.dependsOn(reactive_core, reactive_transport)
.dependsOn(core, transport)

lazy val reactive_web_lift = Project("web-lift", file("reactive-web-lift"))
lazy val web_lift = (project in file("reactive-web-lift"))
.settings(publishingSettings: _*)
.dependsOn(reactive_web, reactive_routing)
.dependsOn(web, routing)

lazy val reactive_web_demo = Project("demo", file("reactive-web-demo"))
lazy val web_demo = (project in file("reactive-web-demo"))
.settings(nonPublishingSettings: _*)
.dependsOn(reactive_web_lift)
.dependsOn(web_lift)

lazy val root = Project("scala-reactive", file("."))
lazy val root = (project in file("."))
.settings(nonPublishingSettings: _*)
.settings(sbtunidoc.Plugin.unidocSettings: _*)
.aggregate(
reactive_core,
reactive_transport,
reactive_web,
reactive_routing,
reactive_web_lift,
reactive_web_demo
core,
transport,
web,
routing,
web_lift,
web_demo
)
}
8 changes: 4 additions & 4 deletions reactive-web-demo/build.sbt
Expand Up @@ -20,31 +20,31 @@ resourceGenerators in Compile <+= (resourceManaged in Compile, scalaSource in Co
}

// Automatically copy the Core API Docs into the "copied-docs" managed resource folder
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (reactive_core, Compile)) map {
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (core, Compile)) map {
(dir, docs) =>
val dest = dir / "copied-docs" / "reactive-core-api"
IO.copyDirectory(docs, dest)
Seq[File]()
}

// Automatically copy the Web API Docs into the "copied-docs" managed resource folder
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (reactive_web, Compile)) map {
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (web, Compile)) map {
(dir, docs) =>
val dest = dir / "copied-docs" / "reactive-web-api"
IO.copyDirectory(docs, dest)
Seq[File]()
}

// Automatically copy the web-lift API Docs into the "copied-docs" managed resource folder
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (reactive_web_lift, Compile)) map {
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (web_lift, Compile)) map {
(dir, docs) =>
val dest = dir / "copied-docs" / "reactive-web-lift-api"
IO.copyDirectory(docs, dest)
Seq[File]()
}

// Automatically copy the routing API Docs into the "copied-docs" managed resource folder
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (reactive_routing, Compile)) map {
resourceGenerators in Compile <+= (resourceManaged in Compile, doc in (routing, Compile)) map {
(dir, docs) =>
val dest = dir / "copied-docs" / "reactive-routing-api"
IO.copyDirectory(docs, dest)
Expand Down

0 comments on commit ecdc1ab

Please sign in to comment.