-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
61 lines (53 loc) · 1.85 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
lazy val commonSettings = Seq(
organization := "com.github.amazingdreams",
scalaVersion := "2.12.4",
version := "0.1.0-SNAPSHOT"
)
lazy val akkaVersion = "2.5.10"
lazy val root = (project in file("."))
.settings(skip in publish := true)
.aggregate(playScheduler)
lazy val playScheduler = (project in file("play-scheduler"))
.settings(
commonSettings,
name := "play-scheduler",
libraryDependencies ++= Seq(
guice,
// Akka Clustering
"com.typesafe.akka" %% "akka-cluster" % akkaVersion,
"com.typesafe.akka" %% "akka-cluster-tools" % akkaVersion,
"com.typesafe.akka" %% "akka-remote" % akkaVersion,
"org.mockito" % "mockito-core" % "2.15.0" % Test,
"org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
),
PlayKeys.playMonitoredFiles ++= (sourceDirectories in (Compile, TwirlKeys.compileTemplates)).value,
homepage := Some(url("https://github.com/AmazingDreams/play-scheduler")),
scmInfo := Some(ScmInfo(url("https://github.com/AmazingDreams/play-scheduler"),
"[email protected]:AmazingDreams/play-scheduler.git")),
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
publishMavenStyle := true,
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
).enablePlugins(
PlayScala
).disablePlugins(
PlayLayoutPlugin
)
lazy val example = (project in file("play-scheduler-example"))
.settings(
commonSettings,
name := "play-scheduler-example",
libraryDependencies ++= Seq(
guice,
"com.typesafe.play" %% "play-json" % "2.6.8",
"com.typesafe.play" %% "play-json-joda" % "2.6.8"
),
PlayKeys.externalizeResources := false
).enablePlugins(
PlayScala
)
.dependsOn(playScheduler)