aboutsummaryrefslogtreecommitdiff
path: root/build/build.scala
blob: 1622f01d9bc5d24af5167d159a17cb478b0dc3d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import cbt._
import java.net.URL
import java.io.File
import scala.collection.immutable.Seq

class Build(context: Context) extends BasicBuild(context){
  // FIXME: somehow consolidate this with cbt's own boot-strapping from source.
  override def dependencies = {
    super.dependencies :+ MavenResolver(context.cbtHasChanged,context.paths.mavenCache,MavenResolver.central).resolve(
      MavenDependency("net.incongru.watchservice","barbary-watchservice","1.0"),
      MavenDependency("org.eclipse.jgit", "org.eclipse.jgit", "4.2.0.201601211800-r"),
      MavenDependency("com.typesafe.zinc","zinc","0.3.9"),
      ScalaDependency("org.scala-lang.modules","scala-xml","1.0.5")
    ) :+ BinaryDependency(new File(System.getenv("CBT_HOME")+"/compatibility"), Seq())
  }
  override def sources = Seq(
    "nailgun_launcher", "stage1", "stage2"
  ).map(d => projectDirectory ++ ("/" + d))
}