Provide a default implementation of Configuration
as part of the API
#1980
Labels
Milestone
Configuration
as part of the API
#1980
Which version and edition of Flyway are you using?
current master
After removing the fluent-style configuration of #1928 again, it seems there are only two ways to create a
Configuration
:ClassicConfiguration
Configuration
in a custom class, implementing every single getter method.ClassicConfiguration
is a perfect fit but marked as an internal class, so it's usage is discouraged. I'm not sure why.The second one is problematic because Flyway upgrades will now necessarily lead to compilation errors when a method is added to the interface, see section 5 of this blog post by Lukas Eder. Most users will only care for a small subset of all configuration options and will happily stick to the defaults for all others. It will also free them from manually copying default values for options they don't care about.
I propose to:
ClassicConfiguration
toBaseConfiguration
(The above paragraph was shamelessly plucked from JOOQ's CustomRecord)
I noticed that the current JavaDoc for
ClassicConfiguration
still references the non-existingFluentConfiguration
and the deprecatednew Flyway(FlywayConfiguration
:I'd be happy to provide a PR with the above changes, but I'm not sure this will actually save you any work since the Pro-Edition sections are cut out.
The text was updated successfully, but these errors were encountered: