-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.sbt
83 lines (70 loc) · 2.65 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
import com.typesafe.sbt.SbtScalariform._
import com.typesafe.tools.mima.plugin.MimaPlugin._
import interplay.ScalaVersions
import scalariform.formatter.preferences._
ThisBuild / dynverVTagPrefix := false
lazy val commonSettings = mimaDefaultSettings ++ Seq(
// scalaVersion needs to be kept in sync with travis-ci
scalaVersion := ScalaVersions.scala213,
crossScalaVersions := Seq(ScalaVersions.scala212, ScalaVersions.scala213),
scalariformAutoformat := true,
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(SpacesAroundMultiImports, true)
.setPreference(SpaceInsideParentheses, false)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(DoubleIndentConstructorArguments, true),
scalacOptions ++= Seq(
"-target:jvm-1.8",
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Ywarn-unused:imports",
"-Xlint:nullary-unit",
"-Xlint",
"-Ywarn-dead-code"
),
javacOptions ++= Seq(
"-Xlint:unchecked",
"-Xlint:deprecation"
),
mimaBinaryIssueFilters ++= Seq(
)
)
// needs to be kept in sync with travis-ci
val PlayVersion = playVersion(sys.env.getOrElse("PLAY_VERSION", "2.8.0"))
// Version used to check binary compatibility
val mimaPreviousArtifactsVersion = "7.0.1"
lazy val `play-mailer` = (project in file("play-mailer"))
.enablePlugins(PlayLibrary)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"javax.inject" % "javax.inject" % "1",
"com.typesafe" % "config" % "1.4.0",
"org.slf4j" % "slf4j-api" % "1.7.30",
"org.apache.commons" % "commons-email" % "1.5",
"com.typesafe.play" %% "play" % PlayVersion % Test,
"com.typesafe.play" %% "play-specs2" % PlayVersion % Test
),
mimaPreviousArtifacts := Set("com.typesafe.play" %% "play-mailer" % mimaPreviousArtifactsVersion)
)
lazy val `play-mailer-guice` = (project in file("play-mailer-guice"))
.enablePlugins(PlayLibrary)
.settings(commonSettings)
.dependsOn(`play-mailer`)
.settings(
libraryDependencies ++= Seq(
"com.google.inject" % "guice" % "4.2.2",
"com.typesafe.play" %% "play" % PlayVersion % Test,
"com.typesafe.play" %% "play-specs2" % PlayVersion % Test
),
mimaPreviousArtifacts := Set("com.typesafe.play" %% "play-mailer-guice" % mimaPreviousArtifactsVersion)
)
lazy val `play-mailer-root` = (project in file("."))
.enablePlugins(PlayRootProject, PlayReleaseBase)
.settings(commonSettings)
.settings(mimaFailOnNoPrevious := false)
.aggregate(`play-mailer`, `play-mailer-guice`)
playBuildRepoName in ThisBuild := "play-mailer"