-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.sbt
72 lines (62 loc) · 1.72 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
import Settings._
import sbtcrossproject.crossProject
inThisBuild(List(
organization := "com.github.alexarchambault",
homepage := Some(url("https://github.com/alexarchambault/argonaut-shapeless")),
licenses := Seq("BSD-3-Clause" -> url("http://www.opensource.org/licenses/BSD-3-Clause")),
developers := List(
Developer(
"alexarchambault",
"Alexandre Archambault",
"",
url("https://github.com/alexarchambault")
)
)
))
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.settings(
shared,
name := "argonaut-shapeless_6.3",
keepNameAsModuleName,
libraryDependencies ++= Seq(
Deps.argonaut.value,
Deps.shapeless.value,
Deps.scalacheckShapeless.value % Test
),
utest,
mimaPreviousArtifacts := Set.empty
)
lazy val coreJVM = core.jvm
lazy val coreJS = core.js
lazy val coreNative = core.native
lazy val refined = crossProject(JVMPlatform, JSPlatform)
.dependsOn(core % "test->test")
.settings(
shared,
name := "argonaut-refined_6.3",
libraryDependencies ++= Seq(
Deps.argonaut.value,
Deps.refined.value,
Deps.shapeless.value,
Deps.scalacheckShapeless.value % Test
),
utest,
keepNameAsModuleName,
mimaPreviousArtifacts := Set.empty
)
lazy val refinedJVM = refined.jvm
lazy val refinedJS = refined.js
lazy val doc = project
.in(file("target/doc"))
.enablePlugins(MdocPlugin)
.disablePlugins(MimaPlugin)
.dependsOn(coreJVM, refinedJVM)
.settings(
shared,
(publish / skip) := true,
mdocIn := (ThisBuild / baseDirectory).value / "doc",
mdocOut := (ThisBuild / baseDirectory).value
)
disablePlugins(MimaPlugin)
(publish / skip) := true
crossScalaVersions := Nil