Skip to content

Commit

Permalink
feat(liquibase): async liquibase configuration should not be activate…
Browse files Browse the repository at this point in the history
…d if liquibase is disabled
  • Loading branch information
murdos committed Dec 5, 2024
1 parent 713172d commit 9b59572
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseDataSource;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties;
Expand All @@ -18,6 +19,7 @@ import org.springframework.core.env.Environment;

@Configuration
@EnableConfigurationProperties({ LiquibaseProperties.class })
@ConditionalOnProperty(prefix = "spring.liquibase", name = { "enabled" }, matchIfMissing = true)
class LiquibaseConfiguration {
private static final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class);
Expand Down

0 comments on commit 9b59572

Please sign in to comment.