Catch exception that's thrown on Java 11 and later

See gh-32034
pull/32861/head
Andy Wilkinson 2 years ago
parent 37833753f8
commit 8e3346c24f

@ -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+
}
}

Loading…
Cancel
Save