Skip to content

Replace configuration via Map objects with Kotlin DSL / method. #25

Description

@smidf

For example from:

setAdditionalProperties(
    mutableMapOf(
            "templateEngine" to "mustache",
            "dateLibrary" to "string"
            ...
    )
)

to: Kotlin DSL / configure blocks

additionalProperties {
    templateEngine = MUSTACHE // enum instead of string
    dateLibrary = STRING // enum instead of string
    generateInfrastructure = false
    ...
}

or to: Methods

additionalProperties {
    setTemplateEngine(MUSTACHE /* enum instead of string */)
    setDateLibrary(STRING /* enum instead of string */)
    generateInfrastructure(false)
    ...
}

This can eliminate setup errors, is much more descriptive and gives the user an overview of the options offered.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions