From 3893cac9d345e3ed2df56cae37e0719a4e37c84c Mon Sep 17 00:00:00 2001 From: Mostafa Kazemi Date: Sat, 4 Nov 2023 20:17:27 +0330 Subject: [PATCH] Add usage doc for Gradle with Kotlin --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index b9fc282..6e80acb 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,18 @@ task integrationTest(type: Test) { ``` +If you're using Gradle with Kotlin (build.gradle.kts), use can enable and use the plugin like this: + +```kotlin +plugins { + id("com.sourcemuse.mongo") version "2.0.0" +} +// ... +tasks.withType { + extra.set("runWithMongoDb", true) +} +``` + ### Configuration ### Configure your Mongo instances inside a ```mongo``` block: