forked from Tinkoff/muffin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
56 lines (39 loc) · 1.63 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
ThisBuild / version := "0.1.74-SNAPSHOT"
ThisBuild / scalaVersion := "3.2.1-RC1-bin-20220621-75d8eea-NIGHTLY"
ThisBuild / organization := "space.littleinferno"
lazy val root = (project in file("."))
.settings(name := "muffin")
.dependsOn(core)
.aggregate(core, `sttp-http-interop`, `circe-interop`, `zio-json-interop`, `zio-http-interop`, `http4s-http-interop`)
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := (s"Tinkoff Releases" at s"https://nexus.tcsbank.ru/repository/api-snapshot").some
//ThisBuild / publishConfiguration := (ThisBuild / publishConfiguration).value.withOverwrite(true)
lazy val modules = file("modules")
lazy val core = project
.in(modules / "core")
lazy val integration = modules / "integration"
lazy val `sttp-http-interop` = project
.in(integration / "sttp-http-interop")
.dependsOn(core)
lazy val `http4s-http-interop` = project
.in(integration / "http4s-http-interop")
.dependsOn(core)
lazy val `zio-http-interop` = project
.in(integration / "zio-http-interop")
.dependsOn(core)
lazy val `circe-interop` = project
.in(integration / "circe-interop")
.dependsOn(core)
lazy val `zio-json-interop` = project
.in(integration / "zio-json-interop")
.dependsOn(core)
lazy val testing = project
.in(modules / "testing")
.dependsOn(core, `sttp-http-interop`, `circe-interop`, `http4s-http-interop`)
.settings(publish / skip := true)
ThisBuild / scalacOptions += "-source:future"
ThisBuild / scalacOptions += "-explain"
ThisBuild / scalacOptions += "-deprecation"
ThisBuild / credentials ++= Option(Path.userHome / ".ivy2" / ".credentials")
.filter(_.exists)
.map(Credentials.apply)