This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
forked from huntc/npm
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
executable file
·75 lines (64 loc) · 1.92 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
organization := "com.typesafe"
name := "npm"
scalaVersion := "2.10.7"
crossScalaVersions := Seq(scalaVersion.value, "2.11.12", "2.12.10")
libraryDependencies ++= {
val akkaVersion = scalaBinaryVersion.value match {
case "2.10" => "2.3.16"
case "2.11" => "2.5.26"
case "2.12" => "2.6.0"
}
Seq(
"com.typesafe" %% "jse" % "1.2.4",
"org.webjars" % "npm" % "5.0.0-2",
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"org.webjars" % "webjars-locator-core" % "0.43",
"commons-io" % "commons-io" % "2.6" % "test",
"org.specs2" %% "specs2-core" % "3.10.0" % "test",
"junit" % "junit" % "4.12" % "test"
)
}
lazy val root = project in file(".")
lazy val `npm-tester` = project.dependsOn(root)
// Publish settings
publishTo := {
if (isSnapshot.value) Some(Opts.resolver.sonatypeSnapshots)
else Some(Opts.resolver.sonatypeStaging)
}
homepage := Some(url("https://github.com/typesafehub/npm"))
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
pomExtra := {
<scm>
<url>[email protected]:typesafehub/npm.git</url>
<connection>scm:git:[email protected]:typesafehub/npm.git</connection>
</scm>
<developers>
<developer>
<id>playframework</id>
<name>Play Framework Team</name>
<url>https://github.com/playframework</url>
</developer>
</developers>
}
pomIncludeRepository := { _ => false }
// Sonatype settings
xerial.sbt.Sonatype.SonatypeKeys.sonatypeProfileName := "com.typesafe"
// Release settings
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseTagName := (version in ThisBuild).value
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)