-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathbuild.sbt
41 lines (29 loc) · 1.15 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
sbtPlugin := true
organization := "com.typesafe.sbt"
name := "sbt-rjs-plugin"
version := "1.0.0-SNAPSHOT"
scalaVersion := "2.10.3"
scalacOptions += "-feature"
libraryDependencies ++= Seq(
"org.webjars" % "rjs" % "2.1.11-1-trireme"
)
resolvers ++= Seq(
"Typesafe Releases Repository" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.url("sbt snapshot plugins", url("http://repo.scala-sbt.org/scalasbt/sbt-plugin-snapshots"))(Resolver.ivyStylePatterns),
Resolver.sonatypeRepo("snapshots"),
"Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/",
Resolver.mavenLocal
)
addSbtPlugin("com.typesafe.sbt" % "sbt-js-engine" % "1.0.0-SNAPSHOT")
scriptedSettings
scriptedLaunchOpts <+= version apply { v => s"-Dproject.version=$v" }
publishMavenStyle := false
publishTo := {
val isSnapshot = version.value.contains("-SNAPSHOT")
val scalasbt = "http://repo.scala-sbt.org/scalasbt/"
val (name, url) = if (isSnapshot)
("sbt-plugin-snapshots", scalasbt + "sbt-plugin-snapshots")
else
("sbt-plugin-releases", scalasbt + "sbt-plugin-releases")
Some(Resolver.url(name, new URL(url))(Resolver.ivyStylePatterns))
}