-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.sbt
More file actions
58 lines (54 loc) · 2.1 KB
/
build.sbt
File metadata and controls
58 lines (54 loc) · 2.1 KB
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
name := "itto-csv"
publishTo := sonatypePublishTo.value
import org.scalajs.linker.interface.{ESVersion, ModuleSplitStyle}
lazy val scala2Js = project
.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(
version := "2.1.2",
scalaVersion := "2.13.16",
// scalaVersion := "2.12.20",
organization := "com.github.gekomad",
scalaJSUseMainModuleInitializer := false,
scalaJSLinkerConfig ~= (_.withESFeatures(_.withESVersion(ESVersion.ES2018))),
scalaJSLinkerConfig ~= {
_.withModuleKind(ModuleKind.ESModule)
.withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List("scala2Js")))
},
scalacOptions ++= {
if (scalaVersion.value.startsWith("2.12")) {
Seq("-Ypartial-unification", "-Xfatal-warnings")
} else {
Seq("-Xfatal-warnings")
}
},
libraryDependencies += "co.fs2" %%% "fs2-core" % "3.11.0",
libraryDependencies += "co.fs2" %%% "fs2-io" % "3.11.0",
libraryDependencies += "com.chuusai" %%% "shapeless" % "2.3.12",
libraryDependencies += "com.github.gekomad" %%% "scala-regex-collection" % "2.0.1",
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.8.1",
libraryDependencies += "org.scalameta" %%% "munit" % "1.1.0" % Test,
libraryDependencies += "org.scalacheck" %%% "scalacheck" % "1.18.1" % Test
)
//sonatype
publishTo := sonatypePublishToBundle.value
pomExtra :=
<licenses>
<license>
<name>Apache 2</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>gekomad</id>
<name>Giuseppe Cannella</name>
<url>https://github.com/gekomad</url>
</developer>
</developers>
<scm>
<url>https://github.com/gekomad/itto-csv</url>
<connection>scm:git:https://github.com/gekomad/itto-csv</connection>
</scm>
<url>https://github.com/gekomad/itto-csv</url>