forked from joescii/lift-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
95 lines (64 loc) · 2.95 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name := "ng"
organization := "net.liftmodules"
homepage := Some(url("https://github.com/joescii/lift-ng"))
version := "0.4.6"
liftVersion <<= liftVersion ?? "2.5.1"
liftEdition <<= liftVersion { _.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
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")
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",
"com.joescii" % "j2js-i18n" % "0.1" % "compile",
"org.scalaz" %% "scalaz-core" % "6.0.4" % "compile" // Ideally, keep this in sync with https://github.com/lift/framework/blob/master/project/Dependencies.scala#L32
)
}
scalacOptions <<= scalaVersion map { v: String =>
val opts = "-deprecation" :: "-unchecked" :: Nil
if (v.startsWith("2.9.")) opts else opts ++ ("-feature" :: "-language:postfixOps" :: Nil)
}
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](version)
buildInfoPackage := "net.liftmodules.ng"
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:joescii/lift-ng.git</url>
<connection>scm:git:git@github.com:joescii/lift-ng.git</connection>
</scm>
<developers>
<developer>
<id>htmldoug</id>
<name>Doug Roper</name>
<url>https://github.com/htmldoug</url>
</developer>
<developer>
<id>joescii</id>
<name>Joe Barnes</name>
<url>https://github.com/joescii</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", "angular")
(description in LsKeys.lsync) := "lift-ng is the most powerful, most secure AngularJS backend available today"
(LsKeys.ghUser in LsKeys.lsync) := Some("joescii")
(LsKeys.ghRepo in LsKeys.lsync) := Some("lift-ng")
(LsKeys.ghBranch in LsKeys.lsync) := Some("master")