-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
55 lines (47 loc) · 1.7 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
import Dependencies._
lazy val root: Project = (project in file("."))
.settings(
publishArtifact := false,
publishLocal := {},
publish := {}
)
.aggregate(play26Project, play27Project)
val commonSettings: Seq[Def.Setting[_]] = inThisBuild(
List(
organization := "com.ruiandrebatista",
scalaVersion := "2.12.10",
crossScalaVersions := Seq("2.11.12", "2.12.10"),
organizationName := "Rui Batista",
startYear := Some(2018),
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/ragb/sttp-play-ws")),
developers := List(
Developer(
"ragb",
"Rui Batista",
url("http://www.ruiandrebatista.com")
)
)
)) ++ Seq(
scalaSource in Compile := (LocalProject("root") / baseDirectory).value / "common" / "src" / "main" / "scala",
scalaSource in Test := (LocalProject("root") / baseDirectory).value / "common" / "src" / "test" / "scala",
libraryDependencies ++= Seq(
sttpCore,
(sttpCore classifier "tests") % Test,
scalatest % Test,
akkaHttp % Test,
akkaStreams % Test,
akkaHttpCors % Test
),
addCompilerPlugin("org.spire-math" % "kind-projector" % kindProjectorVersion cross CrossVersion.binary)
)
def sttpPlayWsProject(playVersion: String, sufix: String, id: String) =
Project(id = id, base = file(id))
.settings(commonSettings: _*)
.settings(
name := s"sttp-play-ws-$sufix",
libraryDependencies ++= playWsDependencies(playVersion)
)
lazy val play26Project = sttpPlayWsProject(play26Version, "26", "play26")
lazy val play27Project = sttpPlayWsProject(play27Version, "27", "play27")