forked from 47degrees/github4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
47 lines (39 loc) · 1.63 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
import ProjectPlugin.on
ThisBuild / organization := "com.47deg"
val scala212 = "2.12.16"
val scala213 = "2.13.8"
val scala3Version = "3.1.3"
val scala2Versions = Seq(scala212, scala213)
val allScalaVersions = scala2Versions :+ scala3Version
ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := allScalaVersions
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; mdoc; ++test")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll; publishMicrosite")
addCommandAlias("ci-publish", "github; ci-release")
publish / skip := true
lazy val github4s = (crossProject(JSPlatform, JVMPlatform))
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.settings(coreDeps: _*)
.settings(
// Increase number of inlines, needed for circe semiauto derivation
scalacOptions ++= on(3, 9)(Seq("-Xmax-inlines", "20")).value.flatten,
// See the README for why this is necessary
// https://github.com/scala-js/scala-js-macrotask-executor/tree/v1.0.0
// tl;dr: without it, performance problems and concurrency bugs abound
libraryDependencies += "org.scala-js" %%% "scala-js-macrotask-executor" % "1.0.0" % Test
)
//////////
// DOCS //
//////////
lazy val microsite: Project = project
.dependsOn(github4s.jvm)
.enablePlugins(MicrositesPlugin)
.enablePlugins(ScalaUnidocPlugin)
.settings(micrositeSettings: _*)
.settings(publish / skip := true)
.settings(ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(github4s.jvm, microsite))
lazy val documentation = project
.enablePlugins(MdocPlugin)
.settings(mdocOut := file("."))
.settings(publish / skip := true)