Hi!
Currently I'm working on a migration application that uses Liquibase to Spring Boot Native (SB 3.0.4). My Liquibase resources include the master file and a few sql files:
/resources/db/changelog/
/tables/init.sql
db.changelog-master.yaml
The master file includes /tables/init.sql file.
When running application in native mode I have the error:
Caused by: java.io.FileNotFoundException: The file db/changelog/tables/init.sql was not found in the configured search path:
- Spring classpath
More locations can be added with the 'searchPath' parameter.
As I can see the master file was added to resources via hint: LiquibaseAutoConfigurationRuntimeHints but other files were not included.
yep, I can add my custom hint with resources (like in spring-aot-smoke-tests#LiquibaseRuntimeHints ) but maybe you have a from-the-box solution which I didn't find.
Thanks!
Comment From: wilkinsona
For Flyway, we use the following pattern for resource inclusion:
hints.resources().registerPattern("db/migration/*");
By contrast, we use the following for Liquibase:
hints.resources().registerPattern("db/changelog/db.changelog-master.yaml");
For consistency and utility, we should align the later with the former and use db/changelog/*.
Comment From: wilkinsona
Closing in favor of #34729. Thanks for the PR, @Ferioney.