forked from danischroeter/akka-persistence-query-view
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
59 lines (56 loc) · 2 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
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.5.0"
addCommandAlias("codeFmt", ";scalafmtAll;scalafmtSbt;scalafixAll")
addCommandAlias("codeVerify", ";scalafmtCheckAll;scalafmtSbtCheck;scalafixAll --check")
lazy val commonSettings = Seq(
organization := "com.firstbird",
organizationName := "Firstbird GmbH",
sonatypeProfileName := "com.firstbird",
homepage := Some(url("https://github.com/firstbirdtech/akka-persistence-query-view")),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
scmInfo := Some(
ScmInfo(homepage.value.get, "scm:git:https://github.com/firstbirdtech/akka-persistence-query-view.git")
),
developers += Developer(
"contributors",
"Contributors",
"hello@firstbird.com",
url("https://github.com/firstbirdtech/backbone/graphs/contributors")
),
startYear := Some(2016),
scalaVersion := "2.13.3",
crossScalaVersions := Seq("2.12.11", scalaVersion.value),
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf-8",
"-explaintypes",
"-feature",
"-language:higherKinds",
"-unchecked",
"-Xcheckinit",
"-Xfatal-warnings"
),
scalacOptions ++= (
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => Seq("-Wdead-code", "-Wunused:imports")
case _ => Seq("-Xfuture", "-Ywarn-dead-code", "-Ywarn-unused:imports", "-Yno-adapted-args")
}
),
javacOptions ++= Seq(
"-Xlint:unchecked",
"-Xlint:deprecation"
),
// show full stack traces and test case durations
testOptions in Test += Tests.Argument("-oDF"),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(
name := "akka-persistence-query-view",
libraryDependencies ++= Dependencies.core,
// Needed because the API doc for Akka-Persistence can't be found and the warning would abort publishing
Compile / doc / scalacOptions := Seq()
)