-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
63 lines (59 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
54
55
56
57
58
59
60
61
62
63
val Scala2_11 = "2.11.12"
val Scala2_12 = "2.12.10"
val Scala2_13 = "2.13.3"
val ScalaTest = "3.2.2"
val SharedSettings = Seq(
name := "translit-scala",
organization := "tech.sparse",
scalaVersion := Scala2_13,
crossScalaVersions := Seq(Scala2_13, Scala2_12, Scala2_11),
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-encoding", "utf8"
),
pomExtra :=
<url>https://github.com/sparsetech/translit-scala</url>
<licenses>
<license>
<name>Apache-2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<scm>
<url>[email protected]:sparsetech/translit-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(js, jvm)
.settings(SharedSettings: _*)
.settings(publishArtifact := false)
lazy val translit = crossProject.in(file("."))
.settings(SharedSettings: _*)
.settings(
autoAPIMappings := true,
apiMappings += (scalaInstance.value.libraryJar -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")),
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % ScalaTest % "test",
"org.scalatest" %%% "scalatest-funsuite" % ScalaTest % "test"
)
)
.jsSettings(
/* Use io.js for faster compilation of test cases */
scalaJSStage in Global := FastOptStage
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.github.pathikrit" %%% "better-files" % "3.9.1" % "test",
"org.scalaj" %%% "scalaj-http" % "2.4.2" % "test"
)
)
lazy val js = translit.js
lazy val jvm = translit.jvm