summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2014-01-02 13:47:43 -0700
committerRocky Madden <git@rockymadden.com>2014-01-02 13:47:43 -0700
commit49de854bb464f1be37fbb27f942b9b65e52df751 (patch)
tree6c9a27ac1264648f67eba9c8707fa87d3dc5b3cd /project
parent42b990a1523a68717afcbdbc2cc4968c041451ec (diff)
downloadstringmetric-49de854bb464f1be37fbb27f942b9b65e52df751.tar.gz
stringmetric-49de854bb464f1be37fbb27f942b9b65e52df751.tar.bz2
stringmetric-49de854bb464f1be37fbb27f942b9b65e52df751.zip
Moved from gradle to sbt.
Diffstat (limited to 'project')
-rw-r--r--project/build.properties1
-rw-r--r--project/build.scala41
2 files changed, 42 insertions, 0 deletions
diff --git a/project/build.properties b/project/build.properties
new file mode 100644
index 0000000..37b489c
--- /dev/null
+++ b/project/build.properties
@@ -0,0 +1 @@
+sbt.version=0.13.1
diff --git a/project/build.scala b/project/build.scala
new file mode 100644
index 0000000..06f9040
--- /dev/null
+++ b/project/build.scala
@@ -0,0 +1,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)
+}