-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
89 lines (81 loc) · 2.39 KB
/
build.sbt
File metadata and controls
89 lines (81 loc) · 2.39 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
sbtVersion := "0.13.5"
val nexus = "https://oss.sonatype.org/"
val nexusSnapshots = "snapshots" at nexus + "content/repositories/snapshots"
val nexusReleases = "releases" at nexus + "service/local/staging/deploy/maven2"
// TODO: figure out how to move this into publish.sbt
val publishSettings = Seq(
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
publishTo := {
if (isSnapshot.value)
Some(nexusSnapshots)
else
Some(nexusReleases)
},
pomExtra :=
<url>https://github.com/S-Mach/s_mach.validate</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:S-Mach/s_mach.validate.git</url>
<connection>scm:git:git@github.com:S-Mach/s_mach.validate.git</connection>
<developerConnection>scm:git:git@github.com:S-Mach/s_mach.validate.git</developerConnection>
</scm>
<developers>
<developer>
<id>lancegatlin</id>
<name>Lance Gatlin</name>
<email>lance.gatlin@gmail.com</email>
<organization>S-Mach</organization>
<organizationUrl>http://s-mach.net</organizationUrl>
</developer>
</developers>
)
val defaultSettings = Defaults.coreDefaultSettings ++ publishSettings ++ Seq(
scalaVersion := "2.11.6",
organization := "net.s_mach",
version := "1.0.0",
scalacOptions ++= Seq(
"-feature",
"-unchecked",
"-deprecation"
)
)
val test = Seq(
"org.scalatest" % "scalatest_2.11" % "2.2.0" % "test"
)
lazy val validatePlayJson = Project(
id = "validate-play-json",
base = file("validate-play-json"),
dependencies = Seq("validate")
)
.settings(libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.3.9"
))
.settings(defaultSettings: _*)
.settings(libraryDependencies ++= test)
lazy val validate = Project(
id = "validate",
base = file("."),
aggregate = Seq(
validateCore,
validatePlayJson
),
dependencies = Seq("validate-core")
)
.settings(defaultSettings: _*)
.settings(unidocSettings: _*)
.settings(libraryDependencies ++= test)
lazy val validateCore = Project(
id = "validate-core",
base = file("validate-core")
)
.settings(defaultSettings: _*)
.settings(libraryDependencies ++= Seq(
"net.s_mach" %% "codetools" % "1.0.5"
))