forked from balihoo/play2-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
40 lines (30 loc) · 1.26 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
organization := "com.balihoo"
name := "play2-bootstrap3"
//this should be kept in sync with the play version
version := "2.3.0-SNAPSHOT"
scalaVersion := "2.11.1"
lazy val root = (project in file(".")).enablePlugins(SbtTwirl)
//seq(twirlSettings: _*)
resolvers ++= Seq(
"Typesafe Releases Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/"
)
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.3.0",
//Testing
"junit" % "junit" % "4.11" % "test",
"org.specs2" %% "specs2" % "2.3.11" % "test",
"org.mockito" % "mockito-core" % "1.9.5" % "test"
)
//Artifact Publishing Stuff, stolen from http://www.scala-sbt.org/0.13.0/docs/Community/Using-Sonatype.html
//Not releasing to Maven Central...so cheating
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("sonatypeuser"), System.getenv("sonatypepassword"))