-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.sbt
More file actions
executable file
·36 lines (28 loc) · 1.03 KB
/
build.sbt
File metadata and controls
executable file
·36 lines (28 loc) · 1.03 KB
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
organization := "com.typesafe"
name := "npm"
version := "1.0.0-SNAPSHOT"
scalaVersion := "2.10.3"
libraryDependencies ++= Seq(
"com.typesafe" %% "jse" % "1.0.0-SNAPSHOT",
"org.webjars" % "npm" % "1.3.26",
"com.typesafe.akka" %% "akka-actor" % "2.2.3",
"org.webjars" % "webjars-locator" % "0.9",
"org.specs2" %% "specs2" % "2.2.2" % "test",
"junit" % "junit" % "4.11" % "test"
)
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.mavenLocal,
"Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/"
)
publishTo := {
val isSnapshot = version.value.contains("-SNAPSHOT")
val typesafe = "http://private-repo.typesafe.com/typesafe/"
val (name, url) = if (isSnapshot)
("sbt-plugin-snapshots", typesafe + "maven-snapshots")
else
("sbt-plugin-releases", typesafe + "maven-releases")
Some(Resolver.url(name, new URL(url)))
}
lazy val root = project.in( file(".") )
lazy val `npm-tester` = project.dependsOn(root)