summaryrefslogtreecommitdiff
path: root/project/build.scala
blob: de4f28aa71e61c6c52001f8de872f496d3eb348e (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import sbt._
import Keys._

object CoreBuild extends Build {
	lazy val root = Project("stringmetric", file("."),
		settings = Defaults.defaultSettings ++ Seq(
			organization := "com.rockymadden.stringmetric",
			name := "stringmetric",
			version := "0.26.1",
			scalaVersion := "2.10.3",
			resolvers ++= Seq(DefaultMavenRepository),
			publishTo := Some("Sonatype" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
			publishMavenStyle := true,
			credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
			pomExtra :=
				<url>http://rockymadden.com/stringmetric/</url>
				<licenses>
					<license>
						<name>MIT</name>
						<distribution>repo</distribution>
					</license>
				</licenses>
				<scm>
					<url>git@github.com:rockymadden/stringmetric.git</url>
					<connection>scm:git:git@github.com:rockymadden/stringmetric.git</connection>
				</scm>
				<developers>
					<developer>
						<id>rockymadden</id>
						<name>Rocky Madden</name>
						<url>http://rockymadden.com/</url>
					</developer>
				</developers>)
	).aggregate(core, cli)

	lazy val core: Project = Project("core", file("core"),
		settings = (root.settings: Seq[sbt.Def.Setting[_]]) ++ Seq(
			name := "stringmetric-core",
			libraryDependencies ++= Seq(
				"junit" % "junit" % "4.11" % "test",
				"org.scalatest" %% "scalatest" % "2.0.M5b" % "test"
			)
		)
	)

	lazy val cli: Project = Project("cli", file("cli"),
		settings = (root.settings: Seq[sbt.Def.Setting[_]]) ++ Seq(
			name := "stringmetric-cli",
			libraryDependencies ++= Seq(
				"junit" % "junit" % "4.11" % "test",
				"org.scalatest" %% "scalatest" % "2.0.M5b" % "test"
			)
		)
	).dependsOn(core)
}