forked from WegenenVerkeer/akka-persistence-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
57 lines (50 loc) · 1.69 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
import Dependencies._
ThisBuild / scalaVersion := Dependencies.scala
ThisBuild / organization := "ch.linkyard.fork"
Global / concurrentRestrictions += Tags.limit(Tags.Test, 1)
credentials += Credentials(Path.userHome / ".sbt" / ".linkyard-credentials")
val nexus = "https://nexus.linkyard.ch/"
val It = config("it") extend Test
lazy val akkaPersistencePgModule = Project(
id = "akka-persistence-pg",
base = file("modules/akka-persistence-pg")
)
.configs(It)
.settings(publishTo := (
if (isSnapshot.value) Some("snapshots" at nexus + "repository/maven-snapshots/")
else Some("releases" at nexus + "repository/maven2-public/"))
)
.settings(libraryDependencies ++= Seq(
slick,
slickHikariCp,
postgres,
akkaPersistence,
akkaPersistenceQuery,
akkaActor,
akkaStreams,
akkaTest,
akkaPersistenceTestkit,
slf4jSimple))
.settings(libraryDependencies ++= mainTestDependencies)
val main = Project(
id = "akka-persistence-postgresql",
base = file(".")
)
.settings(publishTo := (
if (isSnapshot.value) Some("snapshots" at nexus + "repository/maven-snapshots/")
else Some("releases" at nexus + "repository/maven2-public/"))
)
.settings(inThisBuild(List(
Global / onChangedBuildSource := ReloadOnSourceChanges,
scalacOptions += "-encoding",
scalacOptions += "UTF-8",
scalacOptions += "-deprecation",
scalacOptions += "-feature",
scalacOptions += "-unchecked",
scalacOptions += "-Xlint",
scalacOptions += "-Ywarn-value-discard",
scalacOptions += "-language:reflectiveCalls",
scalacOptions += "-Ydelambdafy:method",
ThisBuild / versionScheme := Some("early-semver"),
)))
.aggregate(akkaPersistencePgModule)