Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for FLYWAY_CONFIG_FILES option in build.sbt #85

Open
aleksandr-vin opened this issue Aug 13, 2021 · 1 comment
Open

Add support for FLYWAY_CONFIG_FILES option in build.sbt #85

aleksandr-vin opened this issue Aug 13, 2021 · 1 comment

Comments

@aleksandr-vin
Copy link

As I already have a config file, I want a one setting in build.sbt to configure flywayPlugin to source config from that file.

@aleksandr-vin
Copy link
Author

The workaround could be:

flywayDefaults := flywayDefaults.value.configuration {
  import org.flywaydb.core.internal.configuration.ConfigUtils
  import java.io.File
  ConfigUtils.loadConfigurationFile(new File("src/main/resources/flyway/flyway.conf"), "UTF-8", true)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant