-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.sbt
112 lines (106 loc) · 3.54 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import com.typesafe.sbt.SbtGit.GitKeys._
lazy val commonSettings = Seq(
organization := "net.lullabyte",
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/lucidd/scala-js-chrome"),
"scm:[email protected]:lucidd/scala-js-chrome.git"
)
),
developers := List(
Developer(
"lucidd",
"Kevin Walter",
url("http://lullabyte.net")
)
),
licenses += "MIT" -> url("http://www.opensource.org/licenses/mit-license.html"),
homepage := Some(url("http://github.com/lucidd/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.7",
crossScalaVersions := Seq("2.10.6", "2.11.12", "2.12.7"),
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.6"
),
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")
},
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
scalaJSUseMainModuleInitializer := true
).
enablePlugins(commonPlugins: _*).
enablePlugins(ScalaJSPlugin)
lazy val plugin = project.in(file("sbt-plugin")).
settings(commonSettings: _*).
settings(
sbtPlugin := true,
name := "sbt-chrome-plugin",
libraryDependencies ++= {
val circeVersion = "0.10.1"
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" % "0.6.25")
).
enablePlugins(commonPlugins: _*)
lazy val monixInterop = project.in(file("interop/monix")).
settings(commonSettings: _*).
settings(
name := "scala-js-chrome-monix",
scalaVersion := "2.12.7",
crossScalaVersions := Seq("2.10.6", "2.11.12", "2.12.7"),
libraryDependencies ++= Seq(
"io.monix" %%% "monix" % "3.0.0-RC2"
),
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")
}
).dependsOn(bindings)
.enablePlugins(commonPlugins: _*)
.enablePlugins(ScalaJSPlugin)
lazy val fs2Interop = project.in(file("interop/fs2")).
settings(commonSettings: _*).
settings(
name := "scala-js-chrome-fs2",
scalaVersion := "2.12.7",
crossScalaVersions := Seq("2.11.12", "2.12.7"),
libraryDependencies ++= Seq(
"co.fs2" %%% "fs2-core" % "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")
}
).dependsOn(bindings)
.enablePlugins(commonPlugins: _*)
.enablePlugins(ScalaJSPlugin)