Catch exception that's thrown on Java 11 and later
See gh-32034
This commit is contained in:
@@ -267,7 +267,7 @@ public class FlywayAutoConfiguration {
|
||||
map.from(properties.isIgnorePendingMigrations()).to(configuration::ignorePendingMigrations);
|
||||
map.from(properties.isIgnoreFutureMigrations()).to(configuration::ignoreFutureMigrations);
|
||||
}
|
||||
catch (BootstrapMethodError ex) {
|
||||
catch (BootstrapMethodError | NoSuchMethodError ex) {
|
||||
// Flyway 9+
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user