-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.sbt
More file actions
116 lines (105 loc) · 4.53 KB
/
Copy pathbuild.sbt
File metadata and controls
116 lines (105 loc) · 4.53 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import com.typesafe.tools.mima.core._
val Scala212 = "2.12.21"
val Scala213 = "2.13.18"
inThisBuild(
Seq(
startYear := Some(2020),
Test / fork := true,
developers := List(
// your GitHub handle and name
tlGitHubDev("hamnis", "Erlend Hamnaberg")
),
licenses := Seq(License.Apache2),
tlBaseVersion := "0.7",
crossScalaVersions := Seq(Scala213, Scala212, "3.3.8"),
ThisBuild / scalaVersion := Scala213,
tlJdkRelease := Some(11),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
)
)
val http4sVersion = "0.23.34"
val jetty = "12.1.10"
val netty = "4.2.15.Final"
val munit = "1.3.3"
val munitScalaCheck = "1.3.0"
val nativeNettyModules =
Seq(
"io.netty" % "netty-transport-classes-epoll" % netty,
"io.netty" % "netty-transport-classes-kqueue" % netty,
"io.netty" % "netty-transport-classes-io_uring" % netty,
("io.netty" % "netty-transport-native-epoll" % netty).classifier("linux-x86_64") % Runtime,
("io.netty" % "netty-transport-native-epoll" % netty).classifier("linux-aarch_64") % Runtime,
("io.netty" % "netty-transport-native-kqueue" % netty).classifier("osx-x86_64") % Runtime,
("io.netty" % "netty-transport-native-kqueue" % netty).classifier("osx-aarch_64") % Runtime,
("io.netty" % "netty-transport-native-io_uring" % netty)
.classifier("linux-x86_64") % Runtime,
("io.netty" % "netty-transport-native-io_uring" % netty)
.classifier("linux-aarch_64") % Runtime
)
lazy val core = project
.settings(CommonSettings.settings)
.settings(
name := "http4s-netty-core",
libraryDependencies ++= List(
"org.reactivestreams" % "reactive-streams-flow-adapters" % "1.0.2",
("org.playframework.netty" % "netty-reactive-streams-http" % "3.0.9")
.exclude("io.netty", "netty-codec-http")
.exclude("io.netty", "netty-handler"),
"io.netty" % "netty-codec-http" % netty,
"io.netty" % "netty-handler" % netty,
"org.http4s" %% "http4s-core" % http4sVersion,
"org.typelevel" %% "cats-effect" % "3.7.0"
)
)
lazy val server = project
.dependsOn(core, client % "compile->test")
.settings(CommonSettings.settings)
.settings(
name := "http4s-netty-server",
libraryDependencies ++= List(
"io.netty" % "netty-codec-http2" % netty,
"org.eclipse.jetty" % "jetty-client" % jetty % Test,
"org.eclipse.jetty.http2" % "jetty-http2-client" % jetty % Test,
"org.eclipse.jetty.http2" % "jetty-http2-client-transport" % jetty % Test,
"org.http4s" %% "http4s-server" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"ch.qos.logback" % "logback-classic" % "1.2.13" % Test,
"org.scalameta" %% "munit" % munit % Test,
"org.scalameta" %% "munit-scalacheck" % munitScalaCheck % Test,
"org.http4s" %% "http4s-circe" % http4sVersion % Test,
"org.http4s" %% "http4s-jdk-http-client" % "0.10.0" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.2.0" % Test,
"org.scala-lang.modules" %% "scala-collection-compat" % "2.14.0" % Test
),
libraryDependencySchemes += "org.typelevel" %% "munit-cats-effect" % VersionScheme.Always, // "early-semver",
libraryDependencies ++= nativeNettyModules,
mimaBinaryIssueFilters ++= Nil
)
lazy val client = project
.dependsOn(core)
.settings(CommonSettings.settings)
.settings(
name := "http4s-netty-client",
libraryDependencies ++= List(
"org.http4s" %% "http4s-client" % http4sVersion,
"io.netty" % "netty-codec-http2" % netty,
"io.netty" % "netty-handler-proxy" % netty,
"io.netty" % "netty-codec-http3" % netty,
"org.http4s" %% "http4s-client-testkit" % http4sVersion % Test,
"org.http4s" %% "http4s-ember-server" % http4sVersion % Test,
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2" % Test,
("com.github.monkeywie" % "proxyee" % "1.7.6" % Test)
.excludeAll("io.netty")
.excludeAll("org.bouncycastle"),
("com.github.bbottema" % "java-socks-proxy-server" % "4.1.2" % Test)
.exclude("org.slf4j", "slf4j-api"),
"org.scalameta" %% "munit" % munit % Test,
"ch.qos.logback" % "logback-classic" % "1.2.13" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.2.0" % Test
),
libraryDependencySchemes += "org.typelevel" %% "munit-cats-effect" % VersionScheme.Always, // "early-semver",
libraryDependencies ++= nativeNettyModules,
mimaBinaryIssueFilters ++= Nil
)
lazy val root = tlCrossRootProject.aggregate(core, client, server)