Skip to content

Commit e99b5c5

Browse files
committed
Modify README and build.sbt
1 parent cc01ad2 commit e99b5c5

2 files changed

Lines changed: 68 additions & 5 deletions

File tree

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,39 @@ Akka-persistence-sql-async supports following databases.
88
- MySQL
99
- PostgreSQL
1010

11+
This library is tested against [akka-persistence-tck](http://doc.akka.io/docs/akka/2.3.6/scala/persistence.html#plugin-tck).
12+
1113
## Usage
1214

13-
In application.conf,
15+
### Dependency
16+
17+
You should add the following dependency.
18+
19+
```
20+
libraryDependencies += "com.okumin" %% "akka-persistence-sql-async" % "0.1"
21+
```
22+
23+
And then, please include the mysql-async if you use MySQL.
24+
25+
```
26+
libraryDependencies += "com.github.mauricio" %% "mysql-async" % "0.2.15"
27+
```
28+
29+
And if you use PostgreSQL.
30+
31+
```
32+
libraryDependencies += "com.github.mauricio" %% "postgresql-async" % "0.2.15"
33+
```
34+
35+
### Configuration
36+
37+
In `application.conf`,
1438

1539
```
1640
akka {
1741
persistence {
1842
journal.plugin = "akka-persistence-sql-async.journal"
1943
snapshot-store.plugin = "akka-persistence-sql-async.snapshot-store"
20-
21-
# disable leveldb (default store impl)
22-
journal.leveldb.native = off
2344
}
2445
}
2546

build.sbt

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
organization := "com.okumin"
2+
13
name := "akka-persistence-sql-async"
24

35
version := "0.1"
46

7+
scalaVersion := "2.11.2"
8+
9+
crossScalaVersions := Seq("2.10.4", "2.11.2")
10+
511
val akkaVersion = "2.3.6"
6-
val mauricioVersion = "0.2.14"
12+
val mauricioVersion = "0.2.15"
713

814
libraryDependencies ++= Seq(
915
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
@@ -16,3 +22,39 @@ libraryDependencies ++= Seq(
1622
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
1723
"org.slf4j" % "slf4j-log4j12" % "1.7.7" % "test"
1824
)
25+
26+
publishMavenStyle := true
27+
28+
publishArtifact in Test := false
29+
30+
pomIncludeRepository := { _ => false }
31+
32+
publishTo <<= version { (v: String) =>
33+
val nexus = "https://oss.sonatype.org/"
34+
if (v.trim.endsWith("SNAPSHOT"))
35+
Some("snapshots" at nexus + "content/repositories/snapshots")
36+
else
37+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
38+
}
39+
40+
pomExtra := (
41+
<url>https://github.com/okumin/akka-persistence-sql-async</url>
42+
<licenses>
43+
<license>
44+
<name>Apache 2 License</name>
45+
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
46+
<distribution>repo</distribution>
47+
</license>
48+
</licenses>
49+
<scm>
50+
<url>git@github.com:okumin/akka-persistence-sql-async.git</url>
51+
<connection>scm:git:git@github.com:okumin/akka-persistence-sql-async.git</connection>
52+
</scm>
53+
<developers>
54+
<developer>
55+
<id>okumin</id>
56+
<name>okumin</name>
57+
<url>http://okumin.com/</url>
58+
</developer>
59+
</developers>
60+
)

0 commit comments

Comments
 (0)