This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
76 lines (70 loc) · 2.23 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
// shadow sbt-scalajs' crossProject and CrossType from Scala.js 0.6.x
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
val Scala2_11 = "2.11.12"
val Scala2_12 = "2.12.10"
val Scala2_13 = "2.13.1"
val FastParse = "1.0.1"
val Shapeless = "2.3.3"
val ScalaCheck = "1.14.2"
val ScalaTest = "3.0.8"
val ScalaTestNative = "3.2.0-SNAP10"
val SharedSettings = Seq(
name := "toml-scala",
organization := "tech.sparse",
scalaVersion := Scala2_13,
crossScalaVersions := Seq(Scala2_13, Scala2_12, Scala2_11),
pomExtra :=
<url>https://github.com/sparsetech/toml-scala</url>
<licenses>
<license>
<name>MPL-2.0 License</name>
<url>https://opensource.org/licenses/MPL-2.0</url>
</license>
</licenses>
<scm>
<url>[email protected]:sparsetech/toml-scala.git</url>
</scm>
<developers>
<developer>
<id>tindzk</id>
<name>Tim Nieradzik</name>
<url>http://github.com/tindzk</url>
</developer>
</developers>
)
lazy val root = project.in(file("."))
.aggregate(toml.js, toml.jvm, toml.native)
.settings(SharedSettings: _*)
.settings(skip in publish := true)
lazy val toml =
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(SharedSettings)
.settings(
libraryDependencies ++= Seq(
"org.scalameta" %%% "fastparse" % FastParse,
"com.chuusai" %%% "shapeless" % Shapeless
)
)
.jsSettings(
libraryDependencies ++= Vector(
"org.scalacheck" %%% "scalacheck" % ScalaCheck % "test",
"org.scalatest" %%% "scalatest" % ScalaTest % "test"
)
)
.jvmSettings(
libraryDependencies ++= Vector(
"org.scalacheck" %% "scalacheck" % ScalaCheck % "test",
"org.scalatest" %% "scalatest" % ScalaTest % "test"
)
)
.nativeSettings(
scalaVersion := Scala2_11,
crossScalaVersions := Seq(Scala2_11),
// See https://github.com/scalalandio/chimney/issues/78#issuecomment-419705142
nativeLinkStubs := true,
libraryDependencies ++= Vector(
"org.scalatest" %%% "scalatest" % ScalaTestNative % "test"
),
excludeFilter in Test := "*GeneratedSpec*" || "*Generators*"
)