forked from playframework/play-mailer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
77 lines (67 loc) · 2.38 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
import com.typesafe.sbt.SbtScalariform._
import scalariform.formatter.preferences._
ThisBuild / dynverVTagPrefix := false
lazy val commonSettings = Seq(
scalaVersion := Dependencies.Scala213,
crossScalaVersions := Dependencies.ScalaVersions,
scalariformAutoformat := true,
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(SpacesAroundMultiImports, true)
.setPreference(SpaceInsideParentheses, false)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(DoubleIndentConstructorArguments, true),
scalacOptions ++= Seq(
"-release",
"11",
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Ywarn-unused:imports",
"-Xlint:nullary-unit",
"-Xlint",
"-Ywarn-dead-code"
),
javacOptions ++= Seq(
"-Xlint:unchecked",
"-Xlint:deprecation"
),
)
lazy val `play-mailer` = (project in file("play-mailer"))
.enablePlugins(Common)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"javax.inject" % "javax.inject" % "1",
"com.typesafe" % "config" % "1.4.2",
"org.slf4j" % "slf4j-api" % "2.0.9",
"org.apache.commons" % "commons-email" % "1.5",
"com.typesafe.play" %% "play" % Dependencies.PlayVersion % Test,
"com.typesafe.play" %% "play-specs2" % Dependencies.PlayVersion % Test
),
mimaPreviousArtifacts := Set("com.typesafe.play" %% "play-mailer" % previousStableVersion.value
.getOrElse(throw new Error("Unable to determine previous version"))),
)
lazy val `play-mailer-guice` = (project in file("play-mailer-guice"))
.enablePlugins(Common)
.settings(commonSettings)
.dependsOn(`play-mailer`)
.settings(
libraryDependencies ++= Seq(
"com.google.inject" % "guice" % "6.0.0",
"com.typesafe.play" %% "play" % Dependencies.PlayVersion % Test,
"com.typesafe.play" %% "play-specs2" % Dependencies.PlayVersion % Test
),
mimaPreviousArtifacts := Set("com.typesafe.play" %% "play-mailer-guice" % previousStableVersion.value
.getOrElse(throw new Error("Unable to determine previous version")))
,
)
lazy val `play-mailer-root` = (project in file("."))
.disablePlugins(MimaPlugin)
.settings(commonSettings)
.settings(
crossScalaVersions := Nil,
publish / skip := true
)
.aggregate(`play-mailer`, `play-mailer-guice`)