-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (52 loc) · 1.38 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
import Dependencies._
inThisBuild(
Seq(
scalaVersion := "2.13.12",
scalafmtOnCompile := true,
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8"
),
crossScalaVersions := Seq(scalaVersion.value, "2.12.18"),
organization := "com.github.zhongl",
homepage := Some(url("https://github.com/hanabix/akka-stream-oauth2")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"zhongl",
"Lunfu Zhong",
url("https://github.com/zhongl")
)
)
)
)
def commonSettings(module: String) = Seq(
name := module
)
lazy val root = (project in file("."))
.settings(
commonSettings("akka-stream-oauth2"),
publish / skip := true
)
.aggregate(core, dingtalk, wechat)
lazy val core = (project in file("core"))
.settings(
commonSettings("akka-stream-oauth2-core"),
libraryDependencies ++= common ++ akka ++ auth0
)
lazy val wechat = (project in file("wechat"))
.settings(
commonSettings("akka-stream-oauth2-wechat"),
libraryDependencies ++= common
)
.dependsOn(core)
lazy val dingtalk = (project in file("dingtalk"))
.settings(
commonSettings("akka-stream-oauth2-dingtalk"),
libraryDependencies ++= common
)
.dependsOn(core)