-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (58 loc) · 1.67 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
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-netty")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"zhongl",
"Lunfu Zhong",
"zhong.lunfu@gmail.com",
url("https://github.com/zhongl")
)
)
)
)
def commonSettings(module: String) = Seq(
name := module
)
lazy val root = (project in file("."))
.settings(
commonSettings("akka-stream-netty"),
publish / skip := true
)
.aggregate(core, epoll, kqueue, all)
lazy val core = (project in file("core"))
.settings(
commonSettings("akka-stream-netty-core"),
libraryDependencies ++= common ++ akka ++ `netty-`("codec")
)
lazy val epoll = (project in file("epoll"))
.settings(
commonSettings("akka-stream-netty-epoll"),
libraryDependencies ++= `netty-`("transport-native-epoll").map(_.classifier("linux-x86_64"))
)
.dependsOn(core)
lazy val kqueue = (project in file("kqueue"))
.settings(
commonSettings("akka-stream-netty-kqueue"),
libraryDependencies ++= `netty-`("transport-native-kqueue").map(_.classifier("osx-x86_64"))
)
.dependsOn(core)
lazy val all = (project in file("all"))
.settings(
commonSettings("akka-stream-netty-all"),
libraryDependencies ++= common ++ akka
)
.dependsOn(epoll, kqueue)