Skip to content

Commit

Permalink
Modify README and build.sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
okumin committed Sep 29, 2014
1 parent cc01ad2 commit e99b5c5
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 5 deletions.
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,39 @@ Akka-persistence-sql-async supports following databases.
- MySQL
- PostgreSQL

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

## Usage

In application.conf,
### Dependency

You should add the following dependency.

```
libraryDependencies += "com.okumin" %% "akka-persistence-sql-async" % "0.1"
```

And then, please include the mysql-async if you use MySQL.

```
libraryDependencies += "com.github.mauricio" %% "mysql-async" % "0.2.15"
```

And if you use PostgreSQL.

```
libraryDependencies += "com.github.mauricio" %% "postgresql-async" % "0.2.15"
```

### Configuration

In `application.conf`,

```
akka {
persistence {
journal.plugin = "akka-persistence-sql-async.journal"
snapshot-store.plugin = "akka-persistence-sql-async.snapshot-store"
# disable leveldb (default store impl)
journal.leveldb.native = off
}
}
Expand Down
44 changes: 43 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
organization := "com.okumin"

name := "akka-persistence-sql-async"

version := "0.1"

scalaVersion := "2.11.2"

crossScalaVersions := Seq("2.10.4", "2.11.2")

val akkaVersion = "2.3.6"
val mauricioVersion = "0.2.14"
val mauricioVersion = "0.2.15"

libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
Expand All @@ -16,3 +22,39 @@ libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
"org.slf4j" % "slf4j-log4j12" % "1.7.7" % "test"
)

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false }

publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

pomExtra := (
<url>https://github.com/okumin/akka-persistence-sql-async</url>
<licenses>
<license>
<name>Apache 2 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:okumin/akka-persistence-sql-async.git</url>
<connection>scm:git:git@github.com:okumin/akka-persistence-sql-async.git</connection>
</scm>
<developers>
<developer>
<id>okumin</id>
<name>okumin</name>
<url>http://okumin.com/</url>
</developer>
</developers>
)

0 comments on commit e99b5c5

Please sign in to comment.