Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -227,4 +245,4 @@ or not they are currently up to date by running the following command:

```
gradlew dependencyUpdates
```
```