From 0ff54adc3d7465b0029f90fd43f6b9f7061456f8 Mon Sep 17 00:00:00 2001 From: Petr Vanek Date: Thu, 2 Jan 2020 12:04:04 +0100 Subject: [PATCH] fixes #15 Kotlin Gradle DSL configuration --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef6b6eb..477124f 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,14 @@ plugins { } ``` +Kotlin DSL: + +``` +plugins { + id("com.github.michaelruocco.embedded-mysql-plugin") version "2.1.11" +} +``` + The plugin will add two new tasks to your gradle build: * startEmbeddedMysql @@ -63,6 +71,16 @@ embeddedMysql { version = 'v5_7_latest' } ``` +Kotlin DSL: + +``` +embeddedMysql { + setUrl("jdbc:mysql://localhost:3306/test") + username = "test" + password = "" + setVersion("v5_7_latest") +} +``` Once you have set these properties they will be used to spin up your database so you can connect to it as you would any other mysql database. @@ -227,4 +245,4 @@ or not they are currently up to date by running the following command: ``` gradlew dependencyUpdates -``` \ No newline at end of file +```