New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntegrationSpringBoot: Autoconfiguration missing new duplicateFileMode and searchPath #3230
Comments
I stumbled upon the same issue whlle trying to configure the searchPath with Spring Boot. |
In the liquibase code, there is a We have that because the number of configuration options available will continue to expand over time and we don't want to require all the integrations to keep up with them. Plus, since we support extensions that add behavior which may define their own configuration values, you really can't even know what configuration options ARE available. I've not looked at the spring boot integration code enough to remember off hand how easy that will be to set up. But, you should be able to make a SpringBootConfigurationValueProvider that implements the interface as a wrapper for spring boot's configuration system. That way, when the liquibase code asks for But: one question I have is whether there is an validation of possible values coded into the spring boot integration? Does that code need to know what the possible configuration values are? Does that have to be a static list known at compile time? Or can it be built up at runtime from the metadata available in LiquibaseConfiguration? |
Thanks for the quick response! |
@malteesch Were you able to resolve your issue? Any chance you have the Config Value Provider handy that I can reuse? |
@benze I actually ended up not needing it. If I remember correctly it was a config mistake on my end which lead to the changelog files not being found. Best of luck in resolving your issue!! |
This still something we should consider... In this example I'm getting a failure due to a duplicated file but it isn't....
Liquibase is finding the change log file from the jar and from the classpath. |
for now here's my workaround: db.changelog-master.yml databaseChangeLog:
- include:
file: file:./<MY FOLDER>/src/main/resources/db/changelog/db.changelog-security.yaml
relativeToChangelogFile: false |
Such parameters should be set from spring.liquibase.parameters.*
|
Environment
Liquibase Version: 4.15.0
Liquibase Integration & Version: Spring Boot
Liquibase Extension(s) & Version:
Database Vendor & Version: MariaDB latest
Operating System Type & Version: Windows, Java 11
Infrastructure Type/Provider: VM
Description
Spring Boot integration Liquibase Autoconfiguration does not yet support the new properties duplicateFileMode and searchPath
Steps To Reproduce
spring.liquibase.duplicate-file-mode
orspring.liquibase.search-path
Actual Behavior
Configuration properties are not available
Expected/Desired Behavior
Configuration properties should be available
The text was updated successfully, but these errors were encountered: