Skip to content

gradle kotlin dsl: cannot configure embeddedMysql section #15

@pvanek

Description

@pvanek

I have these sections in my build.gradle.kts

plugins:

id("com.github.michaelruocco.embedded-mysql-plugin") version "2.1.11"
embeddedMysql {
    url = "jdbc:mysql://localhost:3306/test"
    username = "test"
    password = "test"
    version = "v5_7_27"
}

build (and IDE) shows following errors:

* What went wrong:
Script compilation errors:

  Line 170:     url = "jdbc:mysql://localhost:3306/test"
                ^ Unresolved reference: url

  Line 173:     version = "v5_7_27"
                ^ Val cannot be reassigned

  Line 173:     version = "v5_7_27"
                          ^ Type mismatch: inferred type is String but Version! was expected

3 errors

The 3rd error: "version cannot be string" can be fixed with:

com.wix.mysql.distribution.Version.v5_7_27

constant

Is there something I can do with rest of it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions