forked from kaiserpelagic/restrecord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
89 lines (67 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
name := "restrecord"
liftVersion <<= liftVersion ?? "2.5"
version <<= liftVersion apply { _ + "-1.7-SNAPSHOT" }
organization := "net.liftmodules"
scalaVersion := "2.10.0"
crossScalaVersions := Seq("2.10.0", "2.10.1")
resolvers += "CB Central Mirror" at "http://repo.cloudbees.com/content/groups/public"
resolvers += "Java.net Maven2 Repository" at "http://download.java.net/maven/2/"
libraryDependencies <++= liftVersion { v =>
"net.liftweb" %% "lift-record" % v % "compile->default" ::
"net.databinder.dispatch" %% "dispatch-core" % "0.11.0" % "compile->default" ::
"net.databinder.dispatch" %% "dispatch-lift-json" % "0.11.0" % "compile->default" ::
"net.databinder" %% "unfiltered-netty-server" % "0.6.8" % "test" ::
"org.scalamock" %% "scalamock-scalatest-support" % "3.0.1" % "test" ::
"org.scalatest" % "scalatest_2.10" % "1.9.1" % "test" ::
Nil
}
//libraryDependencies <++= scalaVersion { sv =>
// "org.apache.sanselan" % "sanselan" % "0.97-incubator" ::
// (sv match {
// case "2.9.2" | "2.9.1" | "2.9.1-1" => "org.scala-tools.testing" % "specs_2.9.1" % "1.6.9" % "test"
// case _ => "org.scala-tools.testing" %% "specs" % "1.6.8" % "test"
// }) ::
// (sv match {
// case "2.9.2" => "org.scalacheck" % "scalacheck_2.9.1" % "1.9" % "test"
// case _ => "org.scalacheck" %% "scalacheck" % "1.9" % "test"
// }) ::
// Nil
//}
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")
}
}
scalacOptions += "-language:postfixOps"
scalacOptions += "-language:implicitConversions"
scalacOptions += "-language:existentials"
scalacOptions += "-unchecked"
credentials += Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org",
"p3lagic",
"fam1l1ar")
//file("/private/liftmodules/sonatype.credentials") )
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/kaiserpelagic/restrecord</url>
<licenses>
<license>
<name>Apache 2.0 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:kaiserpelagic/restrecord.git</url>
<connection>scm:git:git@github.com:kaiserpelagic/restrecord.git</connection>
</scm>
<developers>
<developer>
<id>kaiserpelagic</id>
<name>Greg</name>
<url>https://github.com/kaiserpelagic</url>
</developer>
</developers>
)