aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-20 22:09:38 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 19:56:13 -0400
commitbba2abe7ee38b8903822a07578c46466923d13ed (patch)
treea357fb8def6f58a9ea9a37411f3f5640dcb525fe /build
parentd2f8cade709b7d55a93e18592b6e38247d648ca9 (diff)
downloadcbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.gz
cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.bz2
cbt-bba2abe7ee38b8903822a07578c46466923d13ed.zip
start modularizing cbt into libraries
this extracts certain parts of cbt into stand-alone libraries, which can be published to maven and used outside of cbt. This also adds scalariform for these parts of the code. This slows down cbt’s own build a lot because of the number of projects involved! So we’ll follow this by a bunch of performance tweak commits.
Diffstat (limited to 'build')
-rw-r--r--build/build.scala9
-rw-r--r--build/build/build.scala2
2 files changed, 7 insertions, 4 deletions
diff --git a/build/build.scala b/build/build.scala
index c5ad1b7..e077343 100644
--- a/build/build.scala
+++ b/build/build.scala
@@ -1,3 +1,4 @@
+package cbt_build.cbt
import cbt._
import cbt_internal._
@@ -12,8 +13,8 @@ class Build(val context: Context) extends Shared with Scalariform with PublishLo
super.dependencies ++ Resolver(mavenCentral).bind(
MavenDependency("org.eclipse.jgit", "org.eclipse.jgit", "4.2.0.201601211800-r"),
ScalaDependency("org.scala-lang.modules","scala-xml",constants.scalaXmlVersion)
- )
- } :+ libraries.eval
+ ) :+ libraries.reflect :+ libraries.eval
+ }
override def sources = Seq(
"nailgun_launcher", "stage1", "stage2", "compatibility"
@@ -22,7 +23,9 @@ class Build(val context: Context) extends Shared with Scalariform with PublishLo
override def scalariform = super.scalariform.copy(
Seq(
context.cbtHome / "stage2" / "DirectoryDependency.scala",
- context.cbtHome / "stage2" / "LazyDependency.scala"
+ context.cbtHome / "stage2" / "LazyDependency.scala",
+ context.cbtHome / "stage2" / "libraries.scala",
+ context.cbtHome / "stage2" / "plugins.scala"
)
)
diff --git a/build/build/build.scala b/build/build/build.scala
index 6752f27..44b8b71 100644
--- a/build/build/build.scala
+++ b/build/build/build.scala
@@ -1,6 +1,6 @@
package cbt_build.cbt.build
import cbt._
-class Build(val context: Context) extends CbtInternal{
+class Build(val context: Context) extends BuildBuild with CbtInternal{
override def dependencies = (
super.dependencies :+ cbtInternal.shared :+ plugins.scalariform
)