This repository has been archived by the owner on Sep 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
109 lines (78 loc) · 3.45 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import com.typesafe.sbt.SbtScalariform._
import xerial.sbt.Sonatype._
import scalariform.formatter.preferences._
//*******************************
// Play settings
//*******************************
name := "play-silhouette-persistence-reactivemongo"
version := "5.0.6"
scalaVersion := "2.12.6"
crossScalaVersions := Seq("2.12.6", "2.11.12")
resolvers += Resolver.jcenterRepo
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
"com.mohiva" %% "play-silhouette" % "5.0.6",
"com.mohiva" %% "play-silhouette-persistence" % "5.0.6",
"org.reactivemongo" %% "play2-reactivemongo" % "0.16.0-play26",
"net.codingwell" %% "scala-guice" % "4.2.1" % "test",
"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "2.1.1" % "test",
specs2 % Test
)
lazy val root = (project in file(".")).enablePlugins(PlayScala).disablePlugins(PlayLayoutPlugin)
//*******************************
// Compiler settings
//*******************************
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
"-Xlint", // Enable recommended additional warnings.
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
"-Ywarn-dead-code", // Warn when dead code is identified.
"-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
"-Ywarn-nullary-override", // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
"-Ywarn-numeric-widen" // Warn when numerics are widened.
)
//*******************************
// Test settings
//*******************************
parallelExecution in Test := false
fork in Test := true
// Needed to avoid https://github.com/travis-ci/travis-ci/issues/3775 in forked tests
// in Travis with `sudo: false`.
// See https://github.com/sbt/sbt/issues/653
// and https://github.com/travis-ci/travis-ci/issues/3775
javaOptions += "-Xmx1G"
//*******************************
// Maven settings
//*******************************
sonatypeSettings
organization := "com.mohiva"
description := "ReactiveMongo persistence module for Silhouette"
homepage := Some(url("http://silhouette.mohiva.com/"))
licenses := Seq("Apache License" -> url("https://github.com/mohiva/play-silhouette-persistence-reactivemongo/blob/master/LICENSE"))
val pom = <scm>
<url>git@github.com:mohiva/play-silhouette-persistence-reactivemongo.git</url>
<connection>scm:git:git@github.com:mohiva/play-silhouette-persistence-reactivemongo.git</connection>
</scm>
<developers>
<developer>
<id>akkie</id>
<name>Christian Kaps</name>
<url>http://mohiva.com</url>
</developer>
</developers>;
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
sources in (Compile,doc) := Seq.empty
pomExtra := pom
//********************************************************
// Scalariform settings
//********************************************************
defaultScalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(FormatXml, false)
.setPreference(DoubleIndentClassDeclaration, false)
.setPreference(DanglingCloseParenthesis, Preserve)