forked from dnvriend/akka-persistence-jounal-writer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
75 lines (59 loc) · 2.44 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
74
75
import sbt._
import sbt.Keys._
name := "akka-persistence-journal-writer"
organization := "io.github.mikla"
scalaVersion := "2.13.4"
crossScalaVersions := Seq("2.13.4") // "2.11.12", "2.12.12"
resolvers += Resolver.jcenterRepo
externalResolvers ++= Seq(
"dnvriend" at "https://dl.bintray.com/dnvriend/maven"
)
libraryDependencies ++= {
val akkaVersion = "2.6.10"
val akkaPersistenceInMemoryVersion = "2.5.15.2"
val commonIoVersion = "2.8.0"
val leveldbVersion = "0.12"
val leveldbJniVersion = "1.8"
val scalaTestVersion = "3.1.4"
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-persistence" % akkaVersion,
"com.typesafe.akka" %% "akka-persistence-query" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.github.dnvriend" %% "akka-persistence-inmemory" % akkaPersistenceInMemoryVersion % Test,
"commons-io" % "commons-io" % commonIoVersion % Test,
"org.iq80.leveldb" % "leveldb" % leveldbVersion % Test,
"org.fusesource.leveldbjni" % "leveldbjni-all" % leveldbJniVersion % Test,
"org.scalatest" %% "scalatest" % scalaTestVersion % Test
)
}
fork in Test := true
parallelExecution in Test := false
// enable scala code formatting //
import com.typesafe.sbt.SbtScalariform
import scalariform.formatter.preferences._
// Scalariform settings
SbtScalariform.autoImport.scalariformPreferences := SbtScalariform.autoImport.scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(DoubleIndentConstructorArguments, true)
// enable updating file headers //
import de.heikoseeberger.sbtheader._
headerLicense := Some(HeaderLicense.ALv2("2016", "Dennis Vriend"))
enablePlugins(AutomateHeaderPlugin)
scmInfo := Some(
ScmInfo(
url("https://github.com/mikla/akka-persistence-jounal-writer"),
"scm:[email protected]:mikla/akka-persistence-jounal-writer.git"
)
)
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
pomIncludeRepository := { _ => false }
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))