-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
76 lines (60 loc) · 2.81 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
66
67
68
69
70
71
72
73
74
75
76
ThisBuild / scalaVersion := scala213
ThisBuild / organization := "com.47deg"
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; mdoc; ++test")
addCommandAlias("ci-docs", "github; documentation/mdoc; headerCreateAll")
addCommandAlias("ci-publish", "github; ci-release")
lazy val scala212 = "2.12.20"
lazy val scala213 = "2.13.15"
lazy val scala3Version = "3.5.2"
lazy val scala2Versions = Seq(scala212, scala213)
lazy val allScalaVersions = scala2Versions :+ scala3Version
lazy val scalaVersions213Plus = Seq(scala213, scala3Version)
publish / skip := true
lazy val fetchless = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(commonCrossDependencies)
.settings(crossScalaVersions := allScalaVersions)
lazy val fetchlessJVM = fetchless.jvm
lazy val fetchlessJS = fetchless.js
.settings(crossScalaVersions := scala2Versions)
lazy val fetchlessDebug = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(crossScalaVersions := allScalaVersions)
.dependsOn(fetchless % "compile->compile;test->test")
lazy val fetchlessDebugJVM = fetchlessDebug.jvm
lazy val fetchlessDebugJS = fetchlessDebug.js
.settings(crossScalaVersions := scala2Versions)
lazy val fetchlessStreaming = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(fs2Dependencies)
.settings(crossScalaVersions := allScalaVersions)
.dependsOn(fetchless % "compile->compile;test->test")
lazy val fetchlessStreamingJVM = fetchlessStreaming.jvm
lazy val fetchlessStreamingJS = fetchlessStreaming.js
.settings(crossScalaVersions := scala2Versions)
lazy val fetchlessHttp4s = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(http4sDependencies)
.settings(crossScalaVersions := scalaVersions213Plus)
.dependsOn(fetchlessStreaming % "compile->compile;test->test")
lazy val fetchlessHttp4sJVM = fetchlessHttp4s.jvm
lazy val fetchlessHttp4sJS = fetchlessHttp4s.js
.settings(crossScalaVersions := Seq(scala213))
lazy val fetchlessHttp4s023 = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(http4s023Dependencies)
.settings(crossScalaVersions := allScalaVersions)
.dependsOn(fetchlessStreaming % "compile->compile;test->test")
lazy val fetchlessHttp4s023JVM = fetchlessHttp4s023.jvm
lazy val fetchlessHttp4s023JS = fetchlessHttp4s023.js
.settings(crossScalaVersions := scala2Versions)
lazy val fetchlessDoobie = crossProject(JVMPlatform)
.crossType(CrossType.Pure)
.settings(doobieDependencies)
.settings(crossScalaVersions := allScalaVersions)
.dependsOn(fetchlessStreaming % "compile->compile;test->test")
lazy val fetchlessDoobieJVM = fetchlessDoobie.jvm
lazy val documentation = project
.enablePlugins(MdocPlugin)
.settings(mdocOut := file("."))
.settings(publish / skip := true)