Skip to content

Provide a way to bind the Flyway Pro license key property #14989

@anderius

Description

@anderius

Flyway, starting from 5.2, added a configuration property required when using the pro/enterprise version:

flyway/flyway#2043

It would be nice to be able to configure this directly from yaml/properties files, without having to use a FlywayConfigurationCustomizer.

I could probably create a PR if this sounds nice to you.

For the record, the following is needed without this support:

@Configuration
class FlywayConfig(
        @Value("\${my-app.flyway.license}") private val flywayLicense: String) {

    @Bean
    fun flywayLicenseCustomizer() = FlywayConfigurationCustomizer { it.licenseKey(flywayLicense) }
}

With the support I suggest, it would be done simply with:

spring.flyway.license-key: "trial"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions