=doc Akka Persistence: sbt/Maven instead of Scala/Java (#23450)

* distributed data is on by default

* clarify paragraph

* add missing space

* make sentence shorter

* fix grammar

* sbt instead of Scala and Maven instead of Java

* add gradle

* substitute scala akka versions

* fix TCK section

* fix version

* =doc clarify there is no language specific dependency
This commit is contained in:
Sebastian Harko 2017-07-31 02:02:51 -07:00 committed by Konrad `ktoso` Malawski
parent 2d42fedb9a
commit bdf8cd42e6

View file

@ -17,14 +17,21 @@ concepts and architecture of [eventsourced](https://github.com/eligosource/event
Akka persistence is a separate jar file. Make sure that you have the following dependency in your project: Akka persistence is a separate jar file. Make sure that you have the following dependency in your project:
Scala sbt
: @@@vars : @@@vars
``` ```
"com.typesafe.akka" %% "akka-persistence" % "$akka.version$" "com.typesafe.akka" %% "akka-persistence" % "$akka.version$"
``` ```
@@@ @@@
Java gradle
: @@@vars
```
compile group: 'com.typesafe.akka', name: 'akka-persistence_$scala.binary_version$', version: '$akka.version$'
```
@@@
maven
: @@@vars : @@@vars
``` ```
<dependency> <dependency>
@ -40,7 +47,7 @@ in-memory heap based journal, local file-system based snapshot-store and LevelDB
LevelDB based plugins will require the following additional dependency declaration: LevelDB based plugins will require the following additional dependency declaration:
Scala sbt
: @@@vars : @@@vars
``` ```
"org.iq80.leveldb" % "leveldb" % "0.7" "org.iq80.leveldb" % "leveldb" % "0.7"
@ -48,7 +55,15 @@ Scala
``` ```
@@@ @@@
Java gradle
: @@@vars
```
compile group: 'org.iq80.leveldb', name: 'leveldb', version: '0.7'
compile group: 'org.fusesource.leveldbjni', name: 'leveldbjni-all', version: '1.8'
```
@@@
maven
: @@@vars : @@@vars
``` ```
<dependency> <dependency>
@ -1115,19 +1130,33 @@ Don't run snapshot store tasks/futures on the system default dispatcher, since t
In order to help developers build correct and high quality storage plugins, we provide a Technology Compatibility Kit ([TCK](http://en.wikipedia.org/wiki/Technology_Compatibility_Kit) for short). In order to help developers build correct and high quality storage plugins, we provide a Technology Compatibility Kit ([TCK](http://en.wikipedia.org/wiki/Technology_Compatibility_Kit) for short).
The TCK is usable from Java as well as Scala projects. For @scala[Scala]@java[Java] you need to include the akka-persistence-tck dependency: The TCK is usable from Java as well as Scala projects. To test your implementation (independently of language) you need to include the akka-persistence-tck dependency:
sbt
: @@@vars
``` ```
"com.typesafe.akka" %% "akka-persistence-tck" % "$akka.version$" % "test" "com.typesafe.akka" %% "akka-persistence-tck" % "$akka.version$" % "test"
``` ```
@@@
gradle
: @@@vars
```
testCompile group: 'com.typesafe.akka', name: 'akka-persistence-tck_$scala.binary_version$', version: '$akka.version$'
```
@@@
maven
: @@@vars
``` ```
<dependency> <dependency>
<groupId>com.typesafe.akka</groupId> <groupId>com.typesafe.akka</groupId>
<artifactId>akka-persistence-tck_${scala.version}</artifactId> <artifactId>akka-persistence-tck_$scala.binary_version$</artifactId>
<version>$akka.version$</version> <version>$akka.version$</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
``` ```
@@@
To include the Journal TCK tests in your test suite simply extend the provided @scala[`JournalSpec`]@java[`JavaJournalSpec`]: To include the Journal TCK tests in your test suite simply extend the provided @scala[`JournalSpec`]@java[`JavaJournalSpec`]:
@ -1179,7 +1208,7 @@ instance. Enable this plugin by defining config property:
LevelDB based plugins will also require the following additional dependency declaration: LevelDB based plugins will also require the following additional dependency declaration:
Scala sbt
: @@@vars : @@@vars
``` ```
"org.iq80.leveldb" % "leveldb" % "0.7" "org.iq80.leveldb" % "leveldb" % "0.7"
@ -1187,7 +1216,15 @@ Scala
``` ```
@@@ @@@
Java gradle
: @@@vars
```
compile group: 'org.iq80.leveldb', name: 'leveldb', version: '0.7'
compile group: 'org.fusesource.leveldbjni', name: 'leveldbjni-all', version: '1.8'
```
@@@
maven
: @@@vars : @@@vars
``` ```
<dependency> <dependency>