forked from ragb/sttp-play-ws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
79 lines (75 loc) · 2.57 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
lazy val root: Project = (project in file("."))
.settings(
publishArtifact := false,
publishLocal := {},
publish := {}
)
.aggregate(
play26Project,
play27Project,
play28Project
)
val commonSettings: Seq[Def.Setting[_]] = inThisBuild(
List(
organization := "com.ruiandrebatista",
scalaVersion := "2.12.11",
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",
unmanagedResourceDirectories in Test ++= Seq(
(LocalProject("root") / baseDirectory).value / "common" / "src" / "test" / "resources"
),
fork in Test := true,
libraryDependencies ++= Seq(
"com.softwaremill.sttp.client" %% "core" % "2.0.0-RC2",
("com.softwaremill.sttp.client" %% "core" % "2.0.0-RC2" classifier "tests") % Test,
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"com.typesafe.akka" %% "akka-http" % "10.1.8" % Test,
"com.typesafe.akka" %% "akka-stream" % "2.5.31" % Test,
"ch.megard" %% "akka-http-cors" % "0.4.2" % Test,
"ch.qos.logback" % "logback-classic" % "1.2.3" % Test
)
)
lazy val play26Project = Project("play26", file("play26"))
.settings(commonSettings)
.settings(
name := "sttp-play-ws-26",
crossScalaVersions := Seq("2.11.12", "2.12.11"),
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-ws" % "2.6.23",
"com.typesafe.play" %% "play-ahc-ws" % "2.6.23"
)
)
lazy val play27Project = Project("play27", file("play27"))
.settings(commonSettings)
.settings(
name := "sttp-play-ws-27",
crossScalaVersions := Seq("2.11.12", "2.12.11", "2.13.2"),
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-ws" % "2.7.5",
"com.typesafe.play" %% "play-ahc-ws" % "2.7.5"
)
)
lazy val play28Project = Project("play28", file("play28"))
.settings(commonSettings)
.settings(
name := "sttp-play-ws-28",
crossScalaVersions := Seq("2.12.10", "2.13.2"),
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-ws" % "2.8.2",
"com.typesafe.play" %% "play-ahc-ws" % "2.8.2"
)
)