-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (52 loc) · 1.85 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
import sbt.Keys.libraryDependencies
name := "scalajs-cross-compile-tarjan"
scalaVersion in ThisBuild := "2.12.4"
lazy val root = project.in(file(".")).
aggregate(tarjanJS, tarjanJVM).
settings(
publish := {},
publishLocal := {},
)
lazy val tarjan = crossProject.in(file(".")).
settings(
name := "scala-tarjan",
version := "0.1.2",
organization := "com.github.fbaierl",
scalaVersion := "2.12.4",
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.5",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test",
normalizedName := "scala-tarjan",
crossScalaVersions := Seq("2.10.6", "2.11.11, 2.12.2"),
homepage := Some(url("https://github.com/fbaierl/scalajs-cross-compile-tarjan")),
licenses += ("MIT License", url("http://www.opensource.org/licenses/mit-license.php")),
scmInfo := Some(ScmInfo(
url("https://github.com/fbaierl/scalajs-cross-compile-tarjan"),
"scm:git:[email protected]/fbaierl/scalajs-cross-compile-tarjan.git",
Some("scm:git:[email protected]/fbaierl/scalajs-cross-compile-tarjan.git"))),
publishMavenStyle := true,
isSnapshot := false,
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 :=
<developers>
<developer>
<id>fbaierl</id>
<name>Florian Baierl</name>
<url>https://github.com/fbaierl</url>
</developer>
</developers>,
pomIncludeRepository := { _ => false }
).
jvmSettings(
libraryDependencies += "org.scala-js" %% "scalajs-stubs" % scalaJSVersion % "provided"
).
jsSettings(
// Add JS-specific settings here
)
lazy val tarjanJVM = tarjan.jvm
lazy val tarjanJS = tarjan.js