forked from AlexITC/scala-js-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
75 lines (71 loc) · 2.28 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
import com.typesafe.sbt.SbtGit.GitKeys._
lazy val commonSettings = Seq(
organization := "com.alexitc",
scalacOptions ++= Seq(
"-Xlint",
"-deprecation",
"-Xfatal-warnings",
"-feature"
), unmanagedSourceDirectories in Compile ++= Seq(
baseDirectory.value.getParentFile / "shared" / "src" / "main" / "scala"
),
scmInfo := Some(
ScmInfo(
url("http://github.com/AlexITC/scala-js-chrome"),
"scm:[email protected]:AlexITC/scala-js-chrome.git"
)
),
developers := List(
Developer(
"AlexITC",
"Alexis Hernandez",
url("https://wiringbits.net")
)
),
licenses += "MIT" -> url("http://www.opensource.org/licenses/mit-license.html"),
homepage := Some(url("http://github.com/AlexITC/scala-js-chrome")),
useGpg := true,
useGitDescribe := true
)
lazy val commonPlugins = Seq(GitVersioning)
lazy val bindings = project.in(file("bindings"))
.settings(commonSettings: _*)
.settings(
name := "scala-js-chrome",
scalaVersion := "2.12.10",
// crossScalaVersions := Seq("2.10.6", "2.11.12", "2.12.7"), TODO: cross-compile to scala 2.13
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "1.0.0"
),
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
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
)
},
publishMavenStyle := false,
bintrayRepository := "sbt-plugins",
bintrayOrganization := None,
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.1"),
addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.0")
).
enablePlugins(commonPlugins: _*)