forked from alexanderjarvis/play-jongo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
68 lines (53 loc) · 1.86 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
import de.johoop.findbugs4sbt.FindBugs._
name := "play-jongo"
organization := "uk.co.panaxiom"
description := "Play 2.5.x Module for Jongo http://jongo.org/"
version := "2.0.0-jongo1.3"
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"org.mongodb" % "mongo-java-driver" % "3.2.2",
"org.jongo" % "jongo" % "1.3.0",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.7.4" % "optional",
"org.easytesting" % "fest-assert" % "1.4" % "test"
)
lazy val root = (project in file(".")).enablePlugins(PlayJava)
findbugsSettings
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-encoding", "UTF-8")
// "-v" needed for more verbose output, otherwise only the number of tests is reported
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-v"))
// Maven publishing info
publishMavenStyle := true
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")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/alexanderjarvis/play-jongo</url>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:alexanderjarvis/play-jongo.git</url>
<connection>scm:git:[email protected]:alexanderjarvis/play-jongo.git</connection>
</scm>
<developers>
<developer>
<id>alexjarvis</id>
<name>Alexander Jarvis</name>
<url>https://github.com/alexanderjarvis</url>
</developer>
<developer>
<id>martin.grotzke</id>
<name>Martin Grotzke</name>
<url>https://github.com/magro</url>
</developer>
</developers>)