-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
30 lines (27 loc) · 1002 Bytes
/
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
import com.typesafe.tools.mima.plugin.MimaKeys.mimaBinaryIssueFilters
lazy val `pekko-persistence-postgres` = project
.in(file("."))
.enablePlugins(ScalaUnidocPlugin)
.disablePlugins(MimaPlugin)
.aggregate(core)
.settings(publish / skip := true)
lazy val core = project
.in(file("core"))
.enablePlugins(MimaPlugin)
.settings(
name := "pekko-persistence-postgres",
mimaBinaryIssueFilters ++= Seq(),
libraryDependencies ++= Dependencies.Libraries.core ++ Dependencies.Libraries.testing
)
TaskKey[Unit]("verifyCodeFmt") := {
scalafmtCheckAll.all(ScopeFilter(inAnyProject)).result.value.toEither.left.foreach { _ =>
throw new MessageOnlyException(
"Unformatted Scala code found. Please run 'scalafmtAll' and commit the reformatted code"
)
}
(Compile / scalafmtSbtCheck).result.value.toEither.left.foreach { _ =>
throw new MessageOnlyException(
"Unformatted sbt code found. Please run 'scalafmtSbt' and commit the reformatted code"
)
}
}