Skip to content

Commit

Permalink
fix(deps): update managed.flyway to v10.10.0 (#521)
Browse files Browse the repository at this point in the history
* fix(deps): update managed.flyway to v10.10.0

* Ignore new undocumented configuration properties

FlywayConfigurationProperties is updated to ignore two new undocumented
configuration builder properties of Flyway's FluentConfiguration. The
added properties are allEnvironments and environmentProvisionMode. This
clears the way for the update to Flyway 10.10.0.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeremy Grelle <[email protected]>
  • Loading branch information
renovate[bot] and jeremyg484 authored Apr 2, 2024
1 parent d55f20b commit aca534d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@ public class FlywayConfigurationProperties implements Toggleable {
// NOTE - Some of the ignored properties (javaMigrations, callbacks, resolvers, resourceProvider, javaMigrationClassProvider)
// are custom Flyway types and implementations are meant to be provided by the user through an implementation of
// FlywayConfigurationCustomizer if needed.
//
// Most of the other ignored properties have overloaded methods in FluentConfiguration, making it non-deterministic as to which
// of the methods would be selected for setting the builder property, thus explicit property setters are provided here instead
// that pass the value through to the builder.
//
// allEnvironments and environmentProvisionMode were added to the builder in 10.10.0, are undocumented, and were breaking things,
// so added to the ignore list without a pass-through setter
@ConfigurationBuilder(prefixes = "", excludes = {"jdbcProperties", "configuration", "dryRunOutput",
"ignoreMigrationPatterns", "locations", "encoding", "target", "javaMigrations", "dataSource",
"baselineVersion", "callbacks", "resolvers", "resourceProvider", "javaMigrationClassProvider"})
"baselineVersion", "callbacks", "resolvers", "resourceProvider", "javaMigrationClassProvider",
"allEnvironments", "environmentProvisionMode"})
FluentConfiguration fluentConfiguration = new FluentConfiguration();

private final String nameQualifier;
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ micronaut-test-resources="2.4.0"

micronaut-gradle-plugin = "4.3.5"

managed-flyway = "10.9.0"
managed-flyway = "10.10.0"

graal-svm = "23.1.2"
persistence-api = '2.2'
Expand Down

0 comments on commit aca534d

Please sign in to comment.