You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to set the duplicateFileMode to WARN instead of ERROR which is the default value as the next error message correctly suggests me: "You can limit the search path to remove duplicates with the liquibase.searchPath setting. Or, if you KNOW these are the exact same file you can set liquibase.duplicateFileMode=WARN."
I've set liquibase.duplicateFileMode: WARN property in my application.yml file, but It seams Liquibase doesn't pick it up.
I've tested with value injection (@Value("/${liquibase.duplicateFileMode}")) that the property has been set correctly in the application.yml, but GlobalConfiguration.DUPLICATE_FILE_MODE.currentValue is still equals to ERROR during the startup.
How could I set this property?
Actual Behaviour
Liquibase doesn't seem to care about any property inside the application.yml which is not under liquibase.datasources.*.
Steps To Reproduce
Micronaut 3.8.0, Kotlin 1.8.0
Set liquibase.duplicateFileMode in applicaiton.yml
Write a Micronaut Singleton which extends ApplicationEventListener<ServiceReadyEvent>
In onApplicationEvent(event: ServiceReadyEvent?) test that the property is set but GlobalConfiguration.DUPLICATE_FILE_MODE.currentValue didn't changed.
Also you can check GlobalConfiguration.DUPLICATE_FILE_MODE.currentConfiguredValue.providedValue.sourceDescription says that it's still the default value.
Environment Information
No response
Example Application
No response
Version
3.8.0
The text was updated successfully, but these errors were encountered:
Small update:
I found that LIQUIBASE_DUPLICATE_FILE_MODE environmental variable set to WARN before run the test works.
So in my multi module project (modular monolith) the solution was to replace the next bit in ALL modulesbuild.gradle.kts from this:
Expected Behavior
I'd like to set the duplicateFileMode to WARN instead of ERROR which is the default value as the next error message correctly suggests me: "You can limit the search path to remove duplicates with the liquibase.searchPath setting. Or, if you KNOW these are the exact same file you can set liquibase.duplicateFileMode=WARN."
I've set
liquibase.duplicateFileMode: WARN
property in myapplication.yml
file, but It seams Liquibase doesn't pick it up.I've tested with value injection (
@Value("/${liquibase.duplicateFileMode}")
) that the property has been set correctly in theapplication.yml
, butGlobalConfiguration.DUPLICATE_FILE_MODE.currentValue
is still equals toERROR
during the startup.How could I set this property?
Actual Behaviour
Liquibase doesn't seem to care about any property inside the
application.yml
which is not underliquibase.datasources.*
.Steps To Reproduce
liquibase.duplicateFileMode
inapplicaiton.yml
ApplicationEventListener<ServiceReadyEvent>
onApplicationEvent(event: ServiceReadyEvent?)
test that the property is set butGlobalConfiguration.DUPLICATE_FILE_MODE.currentValue
didn't changed.GlobalConfiguration.DUPLICATE_FILE_MODE.currentConfiguredValue.providedValue.sourceDescription
says that it's still the default value.Environment Information
No response
Example Application
No response
Version
3.8.0
The text was updated successfully, but these errors were encountered: