Skip to content

Commit 139ab66

Browse files
committed
Create spring-boot-liquibase module
1 parent bf4cdce commit 139ab66

File tree

56 files changed

+178
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+178
-337
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ include "spring-boot-project:spring-boot-jdbc"
5757
include "spring-boot-project:spring-boot-jetty"
5858
include "spring-boot-project:spring-boot-jms"
5959
include "spring-boot-project:spring-boot-jsonb"
60+
include "spring-boot-project:spring-boot-liquibase"
6061
include "spring-boot-project:spring-boot-mail"
6162
include "spring-boot-project:spring-boot-parent"
6263
include "spring-boot-project:spring-boot-reactor-netty"

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dependencies {
2525
optional(project(":spring-boot-project:spring-boot-jdbc"))
2626
optional(project(":spring-boot-project:spring-boot-jetty"))
2727
optional(project(":spring-boot-project:spring-boot-jsonb"))
28+
optional(project(":spring-boot-project:spring-boot-liquibase"))
2829
optional(project(":spring-boot-project:spring-boot-mail"))
2930
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
3031
optional(project(":spring-boot-project:spring-boot-tomcat"))

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/liquibase/LiquibaseEndpointAutoConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2929
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
30-
import org.springframework.boot.autoconfigure.liquibase.DataSourceClosingSpringLiquibase;
31-
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
30+
import org.springframework.boot.liquibase.autoconfigure.DataSourceClosingSpringLiquibase;
31+
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
3232
import org.springframework.context.ApplicationContext;
3333
import org.springframework.context.annotation.Bean;
3434

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebEndpointsAutoConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
3636
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration;
3737
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
38-
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
3938
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
4039
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
4140
import org.springframework.boot.context.annotation.UserConfigurations;
4241
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
42+
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
4343
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
4444
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
4545
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/liquibase/LiquibaseEndpointAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121

2222
import org.springframework.boot.actuate.liquibase.LiquibaseEndpoint;
2323
import org.springframework.boot.autoconfigure.AutoConfigurations;
24-
import org.springframework.boot.autoconfigure.liquibase.DataSourceClosingSpringLiquibase;
24+
import org.springframework.boot.liquibase.autoconfigure.DataSourceClosingSpringLiquibase;
2525
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2626
import org.springframework.context.annotation.Bean;
2727
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/liquibase/LiquibaseEndpointDocumentationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
import org.springframework.boot.actuate.autoconfigure.endpoint.web.documentation.MockMvcEndpointDocumentationTests;
2525
import org.springframework.boot.actuate.liquibase.LiquibaseEndpoint;
26-
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
2726
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
27+
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
2828
import org.springframework.context.ApplicationContext;
2929
import org.springframework.context.annotation.Bean;
3030
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-actuator/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies {
2828
optional(project(":spring-boot-project:spring-boot-jdbc"))
2929
optional(project(":spring-boot-project:spring-boot-jetty"))
3030
optional(project(":spring-boot-project:spring-boot-jsonb"))
31+
optional(project(":spring-boot-project:spring-boot-liquibase"))
3132
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
3233
optional(project(":spring-boot-project:spring-boot-tomcat"))
3334
optional(project(":spring-boot-project:spring-boot-undertow"))

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/liquibase/LiquibaseEndpointTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
import org.springframework.boot.actuate.liquibase.LiquibaseEndpoint.LiquibaseBeanDescriptor;
3131
import org.springframework.boot.autoconfigure.AutoConfigurations;
32-
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
3332
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
3433
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
3534
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
35+
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
3636
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
3737
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
3838
import org.springframework.boot.testsupport.classpath.resources.WithResource;

spring-boot-project/spring-boot-all/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ dependencies {
5151
optional("org.jooq:jooq") {
5252
exclude(group: "javax.xml.bind", module: "jaxb-api")
5353
}
54-
optional("org.liquibase:liquibase-core") {
55-
exclude(group: "javax.xml.bind", module: "jaxb-api")
56-
}
5754
optional("org.postgresql:postgresql")
5855
optional("org.slf4j:jul-to-slf4j")
5956
optional("org.slf4j:slf4j-api")

spring-boot-project/spring-boot-all/src/main/resources/META-INF/spring.factories

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ org.springframework.boot.rsocket.context.RSocketPortInfoApplicationContextInitia
66
org.springframework.boot.env.EnvironmentPostProcessor=\
77
org.springframework.boot.reactor.ReactorEnvironmentPostProcessor
88

9-
# Failure Analyzers
10-
org.springframework.boot.diagnostics.FailureAnalyzer=\
11-
org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer
12-
139
# Database Initializer Detectors
1410
org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector=\
15-
org.springframework.boot.liquibase.LiquibaseDatabaseInitializerDetector,\
1611
org.springframework.boot.orm.jpa.JpaDatabaseInitializerDetector,\
1712
org.springframework.boot.r2dbc.init.R2dbcScriptDatabaseInitializerDetector
1813

0 commit comments

Comments
 (0)