#521 - Add example for Kotlin Coroutines and Flow support.

Original pull request: #522.
This commit is contained in:
Christoph Strobl
2019-08-12 12:22:18 +02:00
committed by Mark Paluch
parent 9080685591
commit 4f0b76ee5d
3 changed files with 111 additions and 0 deletions

View File

@@ -11,7 +11,15 @@
<artifactId>spring-data-mongodb-kotlin</artifactId>
<name>Spring Data MongoDB - Kotlin features</name>
<properties>
<kotlin-coroutines>1.3.0-RC2</kotlin-coroutines>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
@@ -20,6 +28,21 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>${kotlin-coroutines}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-reactor</artifactId>
<version>${kotlin-coroutines}</version>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>