-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.sbt
53 lines (43 loc) · 1.73 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
ThisBuild / scalaVersion := scala213
ThisBuild / organization := "com.47deg"
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; mdoc; ++test")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll; publishMicrosite")
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
publish / skip := true
lazy val fetch = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(commonCrossDependencies)
.settings(crossScalaVersions := allScalaVersions)
lazy val fetchJVM = fetch.jvm
lazy val fetchJS = fetch.js
.settings(crossScalaVersions := scala2Versions)
lazy val `fetch-debug` = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(fetch)
.settings(commonCrossDependencies)
.settings(crossScalaVersions := allScalaVersions)
lazy val debugJVM = `fetch-debug`.jvm
lazy val debugJS = `fetch-debug`.js
.settings(crossScalaVersions := scala2Versions)
lazy val `fetch-examples` = project
.dependsOn(fetchJVM, debugJVM)
.settings(publish / skip := true)
.settings(examplesSettings: _*)
.settings(crossScalaVersions := scala2Versions)
lazy val microsite = project
.dependsOn(fetchJVM, debugJVM)
.settings(docsSettings: _*)
.settings(publish / skip := true)
.enablePlugins(MicrositesPlugin, MdocPlugin)
.settings(crossScalaVersions := scala2Versions)
lazy val documentation = project
.dependsOn(fetchJVM)
.settings(publish / skip := true)
.settings(mdocOut := file("."))
.enablePlugins(MdocPlugin)
.settings(crossScalaVersions := scala2Versions)