summaryrefslogtreecommitdiff
path: root/project/build.scala
blob: 06f9040c29d3a4a6dffd9048ed50e5b800b459a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import sbt._
import Keys._

object Common {
	def name = "stringmetric"
	def organization = "com.rockymadden.stringmetric"
	def scalaVersion = "2.10.3"
	def version = "0.26.1"
}

object CoreBuild extends Build {
	lazy val root = Project(Common.name, file(".")).aggregate(core, cli)

	lazy val core: Project = Project("core", file("core"),
		settings = Defaults.defaultSettings ++ Seq(
			organization := Common.organization,
			name := Common.name + "-core",
			version := Common.version,
			scalaVersion := Common.scalaVersion,
			resolvers ++= Seq(DefaultMavenRepository),
			libraryDependencies ++= Seq(
				"junit" % "junit" % "4.11" % "test",
				"org.scalatest" %% "scalatest" % "2.0.M5b" % "test"
			)
		)
	)

	lazy val cli: Project = Project("cli", file("cli"),
		settings = Defaults.defaultSettings ++ Seq(
			organization := Common.organization,
			name := Common.name + "-cli",
			version := Common.version,
			scalaVersion := Common.scalaVersion,
			resolvers ++= Seq(DefaultMavenRepository),
			libraryDependencies ++= Seq(
				"junit" % "junit" % "4.11" % "test",
				"org.scalatest" %% "scalatest" % "2.0.M5b" % "test"
			)
		)
	).dependsOn(core)
}