forked from schleichardt/play-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
86 lines (70 loc) · 2.77 KB
/
build.sbt
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
import play.Project._
import com.typesafe.sbt.SbtScalariform._
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
lazy val root = Project(id = "play-modules", base = file(".")).
settings(ScctPlugin.mergeReportSettings: _*).
aggregate(basicAuth, featureToggle, embedMongo, mail)
lazy val basicAuth = project.settings(
version := "0.3.1-SNAPSHOT",
name := "play-2-basic-auth",
libraryDependencies += javaCore
).settings(commonSettings:_*)
lazy val featureToggle = project.settings(
version := "0.1-SNAPSHOT",
name := "play-2-feature-toggle",
libraryDependencies += javaCore
).settings(commonSettings:_*)
lazy val embedMongo = project.settings(
version := "0.4-SNAPSHOT",
name := "play-2-embed-mongo",
libraryDependencies += "de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "1.41",
libraryDependencies += "org.mongodb" % "mongo-java-driver" % "2.11.3" % "test",
parallelExecution in ScctPlugin.ScctTest := false,
parallelExecution in Test := false
).settings(commonSettings:_*)
lazy val mail = project.settings(
version := "1.0-SNAPSHOT",
name := "play-2-mail",
libraryDependencies += "org.apache.commons" % "commons-email" % "1.3.2",
libraryDependencies += "com.icegreen" % "greenmail" % "1.3" % "test"
).settings(commonSettings:_*)
organization in ThisBuild := "info.schleichardt"
javacOptions in ThisBuild ++= Seq("-source", "1.6", "-target", "1.6") //for compatibility with Debian Squeeze
publishMavenStyle in ThisBuild := true
publishArtifact in Test in ThisBuild := false
publishTo in ThisBuild <<= version {
(v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
libraryDependencies in ThisBuild += "com.typesafe.play" %% "play" % play.core.PlayVersion.current
libraryDependencies in ThisBuild += "com.typesafe.play" %% "play-test" % play.core.PlayVersion.current % "test"
pomIncludeRepository in ThisBuild := {
_ => false
}
pomExtra in ThisBuild := (
<url>https://github.com/schleichardt/play-modules
</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:schleichardt/play-modules.git</url>
<connection>scm:git:[email protected]:schleichardt/play-modules.git</connection>
</scm>
<developers>
<developer>
<id>schleichardt</id>
<name>Michael Schleichardt</name>
<url>http://michael.schleichardt.info</url>
</developer>
</developers>
)
val commonSettings = scalariformSettings ++ ScctPlugin.instrumentSettings