-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
67 lines (60 loc) · 1.93 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
version in ThisBuild := "0.0.6-SNAPSHOT"
organization in ThisBuild := "de.surfice"
lazy val commonSettings = Seq(
scalacOptions ++= Seq("-deprecation","-unchecked","-feature","-Xlint"),
resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "utest" % "0.4.4" % "test"
),
scalacOptions ++= (if (isSnapshot.value) Seq.empty else Seq({
val a = baseDirectory.value.toURI.toString.replaceFirst("[^/]+/?$", "")
val g = "https://raw.githubusercontent.com/jokade/scalajs-rxjs"
s"-P:scalajs:mapSourceURI:$a->$g/v${version.value}/"
}))
)
lazy val crossSettings = Seq(
scalaVersion := "2.11.11",
crossScalaVersions := Seq("2.11.11","2.12.2")
)
lazy val rxjs = project.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(commonSettings: _*)
.settings(crossSettings:_*)
.settings(publishingSettings: _*)
.settings(
name := "scalajs-rxjs",
libraryDependencies ++= Seq(
),
testFrameworks += new TestFramework("utest.runner.Framework"),
resolvers += Resolver.sonatypeRepo("releases")
)
lazy val publishingSettings = Seq(
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")
},
pomExtra := (
<url>https://github.com/jokade/scalajs-rxjs</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<url>git@github.com:jokade/scalajs-rxjs</url>
<connection>scm:git:git@github.com:jokade/scalajs-rxjs.git</connection>
</scm>
<developers>
<developer>
<id>jokade</id>
<name>Johannes Kastner</name>
<email>jokade@karchedon.de</email>
</developer>
</developers>
)
)