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

Improve the Flyway configuration experience #533

Merged
merged 8 commits into from
Mar 27, 2024
Merged

Conversation

jeremyg484
Copy link
Contributor

@jeremyg484 jeremyg484 commented Mar 25, 2024

FlywayConfigurationProperties is modified to not generate ConfigurationBuilder properties for those FluentConfiguration properties with ambiguous overloaded methods. Those properties are instead directly added to FlywayConfigurationProperties and passed through to the correct FluentConfiguration builder method.

A FlywayConfigurationCustomizer interface is added to allow easy programmatic additions to the configuration, allowing the user to set properties that FlywayConfigurationProperties might not yet support or that involve more complex Flyway types.

A default implementation of FlywayConfigurationCustomizer is provided that looks for beans of known Flyway types with an appropriate @Named qualifier and sets them on the FluentConfiguration builder as appropriate.

Resolves #365, #417 and #458

FlywayConfigurationProperties is modified to not generate
ConfigurationBuilder properties for those FluentConfiguration properties
with ambiguous overloaded methods. Those properties are instead directly
added to FlywayConfigurationProperties and passed through to the correct
FlyentConfiguration builder method.

A FlywayConfigurationCustomizer interface is added to allow easy
programmatic additions to the configuration, allowing the user to set
properties that FlywayConfigurationProperties might not yet support or
that involve more complex Flyway types.

A default implementation of FlywayConfigurationCustomizer is provided
that looks for beans of known Flyway types with an appropriate Named
qualifier and sets them on the FluentConfiguration builder as
appropriate.
@jeremyg484 jeremyg484 self-assigned this Mar 25, 2024
jeremyg484 and others added 4 commits March 26, 2024 08:04
Co-authored-by: Tim Yates <tim.yates@gmail.com>
Co-authored-by: Tim Yates <tim.yates@gmail.com>
Co-authored-by: Tim Yates <tim.yates@gmail.com>
Co-authored-by: Tim Yates <tim.yates@gmail.com>
Copy link

sonarcloud bot commented Mar 26, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

Copy link

sonarcloud bot commented Mar 26, 2024

@jeremyg484 jeremyg484 merged commit 946d0ac into master Mar 27, 2024
11 checks passed
@jeremyg484 jeremyg484 deleted the ambiguous-properties branch March 27, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants