This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
forked from huntc/js-engine
-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.sbt
executable file
·79 lines (69 loc) · 2.18 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
organization := "com.typesafe"
name := "jse"
scalaVersion := "2.10.7"
crossScalaVersions := Seq(scalaVersion.value, "2.11.12", "2.12.7")
libraryDependencies ++= {
val akkaVersion = scalaBinaryVersion.value match {
case "2.10" => "2.3.16"
case "2.11" => "2.3.16"
case "2.12" => "2.5.18"
}
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"io.apigee.trireme" % "trireme-core" % "0.9.4",
"io.apigee.trireme" % "trireme-node10src" % "0.9.4",
"io.spray" %% "spray-json" % "1.3.5",
"org.slf4j" % "slf4j-api" % "1.7.25",
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
"junit" % "junit" % "4.12" % "test",
"org.slf4j" % "slf4j-simple" % "1.7.25" % "test",
"org.specs2" %% "specs2-core" % "3.10.0" % "test"
)
}
lazy val root = project in file(".")
lazy val `js-engine-tester` = project.dependsOn(root)
// Somehow required to get a js engine in tests (https://github.com/sbt/sbt/issues/1214)
fork in Test := true
parallelExecution in Test := false
// Publish settings
publishTo := {
if (isSnapshot.value) Some(Opts.resolver.sonatypeSnapshots)
else Some(Opts.resolver.sonatypeStaging)
}
homepage := Some(url("https://github.com/typesafehub/js-engine"))
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
pomExtra := {
<scm>
<url>git@github.com:typesafehub/js-engine.git</url>
<connection>scm:git:git@github.com:typesafehub/js-engine.git</connection>
</scm>
<developers>
<developer>
<id>playframework</id>
<name>Play Framework Team</name>
<url>https://github.com/playframework</url>
</developer>
</developers>
}
pomIncludeRepository := { _ => false }
// Release settings
sonatypeProfileName := "com.typesafe"
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseTagName := (version in ThisBuild).value
releaseProcess := {
import ReleaseTransformations._
Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
}