-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
59 lines (53 loc) · 2.24 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
val scala2_12 = "2.12.18"
val scala2_13 = "2.13.8"
val scala2 = List(scala2_12, scala2_13)
lazy val commonSettings = Seq(
organization := "app.softnetwork.tapir-http-session",
version := "0.2.0",
versionScheme := Some("early-semver")
)
val akkaHttpSessionVersion = "0.7.0"
val akkaHttpVersion = "10.2.7"
val akkaVersion = "2.6.18"
val json4sVersion = "4.0.4"
val akkaStreams = "com.typesafe.akka" %% "akka-stream" % akkaVersion
val akkaStreamsTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "test"
val tapirVersion = "1.7.0"
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.11" % "test"
lazy val rootProject = (project in file("."))
.settings(commonSettings: _*)
.settings(publish / skip := true, name := "tapir-http-session", scalaVersion := scala2_13)
.aggregate(core.projectRefs ++ example.projectRefs: _*)
lazy val example = (projectMatrix in file("example"))
.settings(commonSettings: _*)
.settings(
publishArtifact := false,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
akkaStreams,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.4",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.json4s" %% "json4s-ext" % json4sVersion,
"com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % tapirVersion
)
)
.jvmPlatform(scalaVersions = scala2)
.dependsOn(core)
lazy val core = (projectMatrix in file("core"))
.settings(commonSettings: _*)
.settings(
name := "core",
libraryDependencies ++= Seq(
"com.softwaremill.akka-http-session" %% "core" % akkaHttpSessionVersion excludeAll ExclusionRule(organization = "com.typesafe.akka"),
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
akkaStreams % "provided",
"com.softwaremill.sttp.tapir" %% "tapir-core" % tapirVersion,
"com.softwaremill.sttp.tapir" %% "tapir-akka-http-server" % tapirVersion excludeAll ExclusionRule(organization = "com.typesafe.akka"),
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test",
akkaStreamsTestkit,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.4",
"org.scalacheck" %% "scalacheck" % "1.15.4" % "test",
scalaTest
)
)
.jvmPlatform(scalaVersions = scala2)