From f27645dbb643aa8655a9434160864059900f7627 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 13 Aug 2019 12:34:45 +0200 Subject: [PATCH] #521 - Polishing. Use inherited dependency management for Coroutine dependencies. Slight documentation tweaks. Original pull request: #522. --- mongodb/kotlin/README.md | 2 +- mongodb/kotlin/pom.xml | 25 ++++++++----------- .../mongodb/people/FlowAndCoroutinesTests.kt | 1 + .../mongodb/people/MongoDslTests.kt | 2 ++ 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/mongodb/kotlin/README.md b/mongodb/kotlin/README.md index 4af0900c..66ce67a5 100644 --- a/mongodb/kotlin/README.md +++ b/mongodb/kotlin/README.md @@ -57,7 +57,7 @@ interface PersonRepository : CrudRepository { ## Type-Safe Kotlin Mongo Query DSL -Using the `Criteria` extensions allows to write type-safe queries via an ideomatic API. +Using the `Criteria` extensions allows to write type-safe queries via an idiomatic API. ```kotlin operations.find(Query(Person::firstname isEqualTo "Tyrion")) diff --git a/mongodb/kotlin/pom.xml b/mongodb/kotlin/pom.xml index e5d01b66..4fb1fb65 100644 --- a/mongodb/kotlin/pom.xml +++ b/mongodb/kotlin/pom.xml @@ -1,4 +1,5 @@ - 4.0.0 @@ -11,10 +12,6 @@ spring-data-mongodb-kotlin Spring Data MongoDB - Kotlin features - - 1.3.0-RC2 - - org.springframework.boot @@ -28,16 +25,14 @@ org.jetbrains.kotlin kotlin-reflect - - org.jetbrains.kotlinx - kotlinx-coroutines-core - ${kotlin-coroutines} - - - org.jetbrains.kotlinx - kotlinx-coroutines-reactor - ${kotlin-coroutines} - + + org.jetbrains.kotlinx + kotlinx-coroutines-core + + + org.jetbrains.kotlinx + kotlinx-coroutines-reactor + io.projectreactor reactor-test diff --git a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt index 410bc13c..21dd03d2 100644 --- a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt +++ b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt @@ -33,6 +33,7 @@ import org.springframework.test.context.junit4.SpringRunner import reactor.test.StepVerifier /** + * Tests showing Coroutine capabilities. * * @author Christoph Strobl */ diff --git a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/MongoDslTests.kt b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/MongoDslTests.kt index 2186e0b4..726d72eb 100644 --- a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/MongoDslTests.kt +++ b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/MongoDslTests.kt @@ -32,6 +32,8 @@ import org.springframework.data.mongodb.core.query.regex import org.springframework.test.context.junit4.SpringRunner /** + * Tests showing the Mongo Criteria DSL. + * * @author Christoph Strobl */ @RunWith(SpringRunner::class)