Skip to content

Hints for including Liquibase changelogs in a native image are unnecessarily narrow #34678

@Ferioney

Description

@Ferioney

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by anothertype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions