Skip to content

Commit 8e8266e

Browse files
committed
Move Flyway endpoint auto-configuration to spring-boot-flyway
1 parent 8faa4cb commit 8e8266e

File tree

9 files changed

+12
-14
lines changed

9 files changed

+12
-14
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ configurations.all {
1818

1919
dependencies {
2020
api(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
21-
api(project(":spring-boot-project:spring-boot-autoconfigure-all"))
21+
api(project(":spring-boot-project:spring-boot-autoconfigure"))
2222

2323
implementation("com.fasterxml.jackson.core:jackson-databind")
2424
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
@@ -36,7 +36,6 @@ dependencies {
3636
optional(project(":spring-boot-project:spring-boot-data-mongodb"))
3737
optional(project(":spring-boot-project:spring-boot-data-neo4j"))
3838
optional(project(":spring-boot-project:spring-boot-data-redis"))
39-
optional(project(":spring-boot-project:spring-boot-flyway"))
4039
optional(project(":spring-boot-project:spring-boot-hazelcast"))
4140
optional(project(":spring-boot-project:spring-boot-http-converter"))
4241
optional(project(":spring-boot-project:spring-boot-http-codec"))

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ org.springframework.boot.actuate.autoconfigure.data.redis.RedisReactiveHealthCon
1515
org.springframework.boot.actuate.autoconfigure.endpoint.jackson.JacksonEndpointAutoConfiguration
1616
org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration
1717
org.springframework.boot.actuate.autoconfigure.env.EnvironmentEndpointAutoConfiguration
18-
org.springframework.boot.actuate.autoconfigure.flyway.FlywayEndpointAutoConfiguration
1918
org.springframework.boot.actuate.autoconfigure.hazelcast.HazelcastHealthContributorAutoConfiguration
2019
org.springframework.boot.actuate.autoconfigure.integration.IntegrationGraphEndpointAutoConfiguration
2120
org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.springframework.boot.data.redis.autoconfigure.RedisAutoConfiguration;
3535
import org.springframework.boot.data.redis.autoconfigure.RedisRepositoriesAutoConfiguration;
3636
import org.springframework.boot.data.rest.autoconfigure.RepositoryRestMvcAutoConfiguration;
37-
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
3837
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
3938
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
4039
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
@@ -77,8 +76,8 @@ private ReactiveWebApplicationContextRunner reactiveWebRunner() {
7776
.withPropertyValues("management.tracing.enabled=false", "management.defaults.metrics.export.enabled=false");
7877
}
7978

80-
@EnableAutoConfiguration(exclude = { FlywayAutoConfiguration.class, LiquibaseAutoConfiguration.class,
81-
CassandraAutoConfiguration.class, CassandraDataAutoConfiguration.class, Neo4jDataAutoConfiguration.class,
79+
@EnableAutoConfiguration(exclude = { LiquibaseAutoConfiguration.class, CassandraAutoConfiguration.class,
80+
CassandraDataAutoConfiguration.class, Neo4jDataAutoConfiguration.class,
8281
Neo4jReactiveDataAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class,
8382
MongoReactiveAutoConfiguration.class, MongoReactiveDataAutoConfiguration.class,
8483
RepositoryRestMvcAutoConfiguration.class, HazelcastAutoConfiguration.class, RedisAutoConfiguration.class,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Spring Boot Actuator AutoConfigure"
1010

1111
dependencies {
1212
api(project(":spring-boot-project:spring-boot-actuator"))
13-
api(project(":spring-boot-project:spring-boot-autoconfigure-all"))
13+
api(project(":spring-boot-project:spring-boot-autoconfigure"))
1414

1515
optional(project(":spring-boot-project:spring-boot-jersey"))
1616
optional(project(":spring-boot-project:spring-boot-tomcat"))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
api(project(":spring-boot-project:spring-boot-jdbc"))
1414
api("org.flywaydb:flyway-core")
1515

16-
optional(project(":spring-boot-project:spring-boot-actuator"))
16+
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
1717
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
1818
optional("org.flywaydb:flyway-database-oracle")
1919
optional("org.flywaydb:flyway-database-postgresql")
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.actuate.autoconfigure.flyway;
17+
package org.springframework.boot.flyway.actuate.endpoint.autoconfigure;
1818

1919
import org.flywaydb.core.Flyway;
2020

@@ -33,10 +33,10 @@
3333
* {@link EnableAutoConfiguration Auto-configuration} for {@link FlywayEndpoint}.
3434
*
3535
* @author Phillip Webb
36-
* @since 2.0.0
36+
* @since 4.0.0
3737
*/
3838
@AutoConfiguration(after = FlywayAutoConfiguration.class)
39-
@ConditionalOnClass({ Flyway.class, FlywayEndpoint.class })
39+
@ConditionalOnClass({ Flyway.class, ConditionalOnAvailableEndpoint.class })
4040
@ConditionalOnAvailableEndpoint(FlywayEndpoint.class)
4141
public class FlywayEndpointAutoConfiguration {
4242

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Auto-configuration for actuator Flyway concerns.
18+
* Auto-configuration for Flyway actuator endpoint.
1919
*/
20-
package org.springframework.boot.actuate.autoconfigure.flyway;
20+
package org.springframework.boot.flyway.actuate.endpoint.autoconfigure;
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
org.springframework.boot.flyway.actuate.endpoint.autoconfigure.FlywayEndpointAutoConfiguration
12
org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.actuate.autoconfigure.flyway;
17+
package org.springframework.boot.flyway.actuate.endpoint.autoconfigure;
1818

1919
import org.flywaydb.core.Flyway;
2020
import org.junit.jupiter.api.Test;

0 commit comments

Comments
 (0)