Skip to content

Commit 51937c9

Browse files
snicollwilkinsona
authored andcommitted
Create spring-boot-flyway module
1 parent bdfee6f commit 51937c9

File tree

67 files changed

+307
-301
lines changed

Some content is hidden

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

67 files changed

+307
-301
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ include "spring-boot-project:spring-boot-dependencies"
5151
include "spring-boot-project:spring-boot-devtools"
5252
include "spring-boot-project:spring-boot-docker-compose"
5353
include "spring-boot-project:spring-boot-docs"
54+
include "spring-boot-project:spring-boot-flyway"
5455
include "spring-boot-project:spring-boot-jackson"
5556
include "spring-boot-project:spring-boot-jdbc"
5657
include "spring-boot-project:spring-boot-jetty"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies {
2020
optional(project(":spring-boot-project:spring-boot-activemq"))
2121
optional(project(":spring-boot-project:spring-boot-amqp"))
2222
optional(project(":spring-boot-project:spring-boot-artemis"))
23+
optional(project(":spring-boot-project:spring-boot-flyway"))
2324
optional(project(":spring-boot-project:spring-boot-jackson"))
2425
optional(project(":spring-boot-project:spring-boot-jdbc"))
2526
optional(project(":spring-boot-project:spring-boot-jetty"))
@@ -101,7 +102,6 @@ dependencies {
101102
optional("org.elasticsearch.client:elasticsearch-rest-client") {
102103
exclude group: "commons-logging", module: "commons-logging"
103104
}
104-
optional("org.flywaydb:flyway-core")
105105
optional("org.glassfish.jersey.core:jersey-server")
106106
optional("org.glassfish.jersey.containers:jersey-container-servlet-core")
107107
optional("org.glassfish.jersey.ext:jersey-micrometer")

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/flyway/FlywayEndpointAutoConfiguration.java

Lines changed: 2 additions & 2 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.
@@ -25,7 +25,7 @@
2525
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
28-
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
28+
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
2929
import org.springframework.context.ApplicationContext;
3030
import org.springframework.context.annotation.Bean;
3131

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/flyway/FlywayEndpointDocumentationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.boot.actuate.autoconfigure.endpoint.web.documentation.MockMvcEndpointDocumentationTests;
2727
import org.springframework.boot.actuate.flyway.FlywayEndpoint;
2828
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
29-
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
29+
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
3030
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
3131
import org.springframework.context.ApplicationContext;
3232
import org.springframework.context.annotation.Bean;

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

Lines changed: 2 additions & 2 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.
@@ -34,12 +34,12 @@
3434
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
3535
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
3636
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration;
37-
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
3837
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
3938
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
4039
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
4140
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
4241
import org.springframework.boot.context.annotation.UserConfigurations;
42+
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
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/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies {
2424
dockerTestImplementation("org.testcontainers:testcontainers")
2525

2626
optional(project(":spring-boot-project:spring-boot-activemq"))
27+
optional(project(":spring-boot-project:spring-boot-flyway"))
2728
optional(project(":spring-boot-project:spring-boot-jdbc"))
2829
optional(project(":spring-boot-project:spring-boot-jetty"))
2930
optional(project(":spring-boot-project:spring-boot-jsonb"))
@@ -62,7 +63,6 @@ dependencies {
6263
optional("org.elasticsearch.client:elasticsearch-rest-client") {
6364
exclude(group: "commons-logging", module: "commons-logging")
6465
}
65-
optional("org.flywaydb:flyway-core")
6666
optional("org.glassfish.jersey.core:jersey-server")
6767
optional("org.glassfish.jersey.containers:jersey-container-servlet-core")
6868
optional("org.hibernate.validator:hibernate-validator")

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/flyway/FlywayEndpointTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
import org.springframework.boot.actuate.flyway.FlywayEndpoint.FlywayDescriptor;
2424
import org.springframework.boot.autoconfigure.AutoConfigurations;
25-
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
26-
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
25+
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
26+
import org.springframework.boot.flyway.autoconfigure.FlywayMigrationStrategy;
2727
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
2828
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2929
import org.springframework.boot.testsupport.classpath.resources.WithResource;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ dependencies {
4545
optional("org.apache.groovy:groovy-xml")
4646
optional("org.crac:crac")
4747
optional("org.eclipse.jetty:jetty-client")
48-
optional("org.flywaydb:flyway-core")
4948
optional("org.hamcrest:hamcrest-library")
5049
optional("org.hibernate.orm:hibernate-core")
5150
optional("org.hibernate.validator:hibernate-validator")

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer
1212

1313
# Database Initializer Detectors
1414
org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector=\
15-
org.springframework.boot.flyway.FlywayDatabaseInitializerDetector,\
1615
org.springframework.boot.liquibase.LiquibaseDatabaseInitializerDetector,\
1716
org.springframework.boot.orm.jpa.JpaDatabaseInitializerDetector,\
1817
org.springframework.boot.r2dbc.init.R2dbcScriptDatabaseInitializerDetector

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies {
4444

4545
optional(project(":spring-boot-project:spring-boot-activemq"))
4646
optional(project(":spring-boot-project:spring-boot-artemis"))
47+
optional(project(":spring-boot-project:spring-boot-flyway"))
4748
optional(project(":spring-boot-project:spring-boot-jackson"))
4849
optional(project(":spring-boot-project:spring-boot-jdbc"))
4950
optional(project(":spring-boot-project:spring-boot-jsonb"))
@@ -126,10 +127,6 @@ dependencies {
126127
optional("org.elasticsearch.client:elasticsearch-rest-client-sniffer") {
127128
exclude group: "commons-logging", module: "commons-logging"
128129
}
129-
optional("org.flywaydb:flyway-core")
130-
optional("org.flywaydb:flyway-database-postgresql")
131-
optional("org.flywaydb:flyway-database-oracle")
132-
optional("org.flywaydb:flyway-sqlserver")
133130
optional("org.freemarker:freemarker")
134131
optional("org.glassfish.jersey.containers:jersey-container-servlet-core")
135132
optional("org.glassfish.jersey.containers:jersey-container-servlet")

0 commit comments

Comments
 (0)