-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
36 lines (32 loc) · 1.19 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
import com.typesafe.tools.mima.plugin.MimaKeys.mimaBinaryIssueFilters
lazy val `akka-persistence-postgres` = project
.in(file("."))
.enablePlugins(ScalaUnidocPlugin)
.disablePlugins(MimaPlugin)
.aggregate(core, migration)
.settings(publish / skip := true)
lazy val core = project
.in(file("core"))
.enablePlugins(MimaPlugin)
.settings(
name := "akka-persistence-postgres",
libraryDependencies ++= Dependencies.Libraries,
mimaBinaryIssueFilters ++= Seq())
lazy val migration = project
.in(file("migration"))
.disablePlugins(MimaPlugin)
.settings(
name := "akka-persistence-postgres-migration",
libraryDependencies ++= Dependencies.Migration,
Test / parallelExecution := false)
.dependsOn(core)
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")
}
}