forked from AlexITC/scala-js-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
60 lines (55 loc) · 1.64 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
inThisBuild(List(
organization := "com.alexitc",
homepage := Some(url("https://github.com/AlexITC/scala-js-chrome")),
licenses := List("MIT" -> url("http://www.opensource.org/licenses/mit-license.html")),
developers := List(
Developer(
"AlexITC",
"Alexis Hernandez",
"alexis22229@gmail.com",
url("https://wiringbits.net")
)
)
))
skip in publish := true
lazy val commonSettings = Seq(
scalacOptions ++= Seq(
"-Xlint",
"-deprecation",
"-Xfatal-warnings",
"-feature"
), unmanagedSourceDirectories in Compile ++= Seq(
baseDirectory.value.getParentFile / "shared" / "src" / "main" / "scala"
),
)
lazy val commonPlugins = Seq()
lazy val bindings = project.in(file("bindings"))
.settings(commonSettings: _*)
.settings(
name := "scala-js-chrome",
crossScalaVersions := Seq("2.12.10", "2.13.1"),
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "1.0.0"
),
scalaJSUseMainModuleInitializer := true
).
enablePlugins(commonPlugins: _*).
enablePlugins(ScalaJSPlugin).
enablePlugins(JSDependenciesPlugin)
lazy val plugin = project.in(file("sbt-plugin")).
settings(commonSettings: _*).
settings(
sbtPlugin := true,
name := "sbt-chrome-plugin",
libraryDependencies ++= {
val circeVersion = "0.13.0"
Seq(
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion
)
},
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.1"),
addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.0")
).
enablePlugins(commonPlugins: _*)