forked from sbt/sbt-appengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
51 lines (34 loc) · 1.79 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
sbtPlugin := true
name := "sbt-appengine"
organization := "com.eed3si9n"
version := "0.6.2"
description := "sbt plugin to deploy on appengine"
licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-appengine/blob/master/LICENSE"))
libraryDependencies <++= (scalaBinaryVersion in sbtPlugin, sbtBinaryVersion in sbtPlugin) { (scalaV, sv) => Seq(
sv match {
case "0.11.0" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.0-0.2.8"
case "0.11.1" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.1-0.2.10"
case "0.11.2" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.2-0.2.11"
case "0.11.3" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.3-0.2.11.1"
case "0.12" => "com.github.siasia" %% "xsbt-web-plugin" % "0.12.0-0.2.11.1"
case "0.13" => "com.earldouglas" % "xsbt-web-plugin" % "0.4.0" extra("scalaVersion" -> scalaV, "sbtVersion" -> sv)
},
sv match {
case "0.12" => "cc.spray" % "sbt-revolver" % "0.6.1" extra("scalaVersion" -> scalaV, "sbtVersion" -> sv)
case "0.13" => "io.spray" % "sbt-revolver" % "0.7.1" extra("scalaVersion" -> scalaV, "sbtVersion" -> sv)
}
)}
scalacOptions := Seq("-deprecation", "-unchecked")
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishArtifact in (Compile, packageBin) := true
publishArtifact in (Test, packageBin) := false
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Compile, packageSrc) := false
resolvers += "Maven.org" at "http://repo1.maven.org/maven2"
resolvers += "spray repo" at "http://repo.spray.cc"
publishMavenStyle := false
publishTo := {
if (version.value contains "-SNAPSHOT") Some(Resolver.sbtPluginRepo("snapshots"))
else Some(Resolver.sbtPluginRepo("releases"))
}
credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials")