-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
executable file
·80 lines (53 loc) · 2.53 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
79
80
name := "Omniauth"
organization := "net.liftmodules"
homepage := Some(url("https://github.com/ghostm/lift-omniauth"))
version := "0.17"
liftVersion <<= liftVersion ?? "2.5.1"
liftEdition <<= liftVersion apply { _.substring(0,3) }
name <<= (name, liftEdition) { (n, e) => n + "_" + e }
// Necessary beginning with sbt 0.13, otherwise Lift editions get messed up.
// E.g. "2.5" gets converted to "2-5"
moduleName := name.value.toLowerCase
scalaVersion <<= scalaVersion ?? "2.9.1" // This project's scala version is purposefully set at the lowest common denominator to ensure each version compiles.
crossScalaVersions := Seq("2.10.4", "2.9.2", "2.9.1-1", "2.9.1") // Excluding "2.11.1" since Lift 2.5.1 isn't built for it
resolvers += "CB Central Mirror" at "http://repo.cloudbees.com/content/groups/public"
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies <++= liftVersion { v =>
Seq("net.liftweb" %% "lift-webkit" % v % "provided",
"net.databinder" %% "dispatch-core" % "0.8.10",
"net.databinder" %% "dispatch-http" % "0.8.10",
"net.databinder" %% "dispatch-oauth" % "0.8.10",
"net.databinder" %% "dispatch-http-json" % "0.8.10"
)
}
//scalacOptions ++= Seq("-feature")
publishTo <<= version { _.endsWith("SNAPSHOT") match {
case true => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
case false => Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
}
credentials += Credentials( file("sonatype.credentials") )
credentials += Credentials( file("/private/liftmodules/sonatype.credentials") )
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>git@github.com:ghostm/lift-omniauth.git</url>
<connection>scm:git:git@github.com:ghostm/lift-omniauth.git</connection>
</scm>
<developers>
<developer>
<id>ghostm</id>
<name>Matthew Henderson</name>
<url>https://github.com/ghostm</url>
</developer>
</developers>
)
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
seq(lsSettings :_*)
(LsKeys.tags in LsKeys.lsync) := Seq("lift", "oauth")
(description in LsKeys.lsync) := "Omniauth for Lift"
(LsKeys.ghUser in LsKeys.lsync) := Some("ghostm")
(LsKeys.ghRepo in LsKeys.lsync) := Some("lift-omniauth")
(LsKeys.ghBranch in LsKeys.lsync) := Some("master")