-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
73 lines (69 loc) · 2.32 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
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
addCommandAlias("codeFmt", ";headerCreate;scalafmtAll;scalafmtSbt;scalafixAll")
addCommandAlias("codeVerify", ";scalafmtCheckAll;scalafmtSbtCheck;scalafixAll --check;headerCheck")
lazy val commonSettings = Seq(
organization := "com.firstbird",
organizationName := "Firstbird GmbH",
sonatypeProfileName := "com.firstbird",
homepage := Some(url("https://github.com/firstbirdtech/akka-persistent-scheduler")),
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
scmInfo := Some(
ScmInfo(homepage.value.get, "[email protected]:firstbirdtech/akka-persistent-scheduler.git")
),
developers += Developer(
"contributors",
"Contributors",
"hello@firstbird,com",
url("https://github.com/firstbirdtech/akka-persistent-scheduler/graphs/contributors")),
scalaVersion := "2.13.16",
crossScalaVersions := Seq("2.12.20", scalaVersion.value),
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-deprecation",
"-Xfatal-warnings",
"-Xlint",
"-Ywarn-dead-code"
),
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")
}
),
// show full stack traces and test case durations
Test / testOptions += Tests.Argument("-oDF"),
headerLicense := Some(HeaderLicense.MIT("2021", "Akka Persistent Scheduler contributors")),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(publish / skip := true)
.aggregate(core)
lazy val core = project
.in(file("core"))
.settings(commonSettings)
.settings(
name := "akka-persistent-scheduler",
libraryDependencies ++= Dependencies.core(
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) => "0.8.0"
case _ => "1.0.2"
}
)
)