Skip to content

Commit 7a2365f

Browse files
committed
Move Flyway Docker Compose support into spring-boot-flyway
1 parent 92df85c commit 7a2365f

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Connection Details Factories
22
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
33
org.springframework.boot.docker.compose.service.connection.clickhouse.ClickHouseR2dbcDockerComposeConnectionDetailsFactory,\
4-
org.springframework.boot.docker.compose.service.connection.flyway.JdbcAdaptingFlywayConnectionDetailsFactory,\
54
org.springframework.boot.docker.compose.service.connection.hazelcast.HazelcastDockerComposeConnectionDetailsFactory,\
65
org.springframework.boot.docker.compose.service.connection.ldap.LLdapDockerComposeConnectionDetailsFactory,\
76
org.springframework.boot.docker.compose.service.connection.ldap.OpenLdapDockerComposeConnectionDetailsFactory,\

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies {
1515
api("org.flywaydb:flyway-core")
1616
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
1717
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
18+
optional(project(":spring-boot-project:spring-boot-docker-compose"))
1819
optional(project(":spring-boot-project:spring-boot-testcontainers"))
1920
optional("org.flywaydb:flyway-database-oracle")
2021
optional("org.flywaydb:flyway-database-postgresql")
@@ -25,6 +26,7 @@ dependencies {
2526
dependencies {
2627
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
2728
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
29+
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-docker-compose")))
2830
dockerTestImplementation("org.testcontainers:junit-jupiter")
2931
dockerTestImplementation("org.testcontainers:postgresql")
3032
dockerTestRuntimeOnly("org.postgresql:postgresql")

spring-boot-project/spring-boot-docker-compose-all/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/flyway/JdbcAdaptingFlywayConnectionDetailsFactoryIntegrationTests.java renamed to spring-boot-project/spring-boot-flyway/src/dockerTest/java/org/springframework/boot/flyway/docker/compose/JdbcAdaptingFlywayConnectionDetailsFactoryIntegrationTests.java

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.docker.compose.service.connection.flyway;
17+
package org.springframework.boot.flyway.docker.compose;
1818

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.flyway.autoconfigure.FlywayConnectionDetails;

spring-boot-project/spring-boot-docker-compose-all/src/dockerTest/resources/org/springframework/boot/docker/compose/service/connection/flyway/flyway-compose.yaml renamed to spring-boot-project/spring-boot-flyway/src/dockerTest/resources/org/springframework/boot/flyway/docker/compose/flyway-compose.yaml

File renamed without changes.

spring-boot-project/spring-boot-docker-compose-all/src/main/java/org/springframework/boot/docker/compose/service/connection/flyway/JdbcAdaptingFlywayConnectionDetailsFactory.java renamed to spring-boot-project/spring-boot-flyway/src/main/java/org/springframework/boot/flyway/docker/compose/JdbcAdaptingFlywayConnectionDetailsFactory.java

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.docker.compose.service.connection.flyway;
17+
package org.springframework.boot.flyway.docker.compose;
1818

1919
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory;
2020
import org.springframework.boot.flyway.autoconfigure.FlywayConnectionDetails;

spring-boot-project/spring-boot-docker-compose-all/src/main/java/org/springframework/boot/docker/compose/service/connection/flyway/package-info.java renamed to spring-boot-project/spring-boot-flyway/src/main/java/org/springframework/boot/flyway/docker/compose/package-info.java

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 Docker Compose Flyway service connections.
18+
* Support for Docker Compose Flyway service connections.
1919
*/
20-
package org.springframework.boot.docker.compose.service.connection.flyway;
20+
package org.springframework.boot.flyway.docker.compose;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Connection Details Factories
22
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
3+
org.springframework.boot.flyway.docker.compose.JdbcAdaptingFlywayConnectionDetailsFactory,\
34
org.springframework.boot.flyway.testcontainers.FlywayContainerConnectionDetailsFactory
45

56
# Database Initializer Detectors

0 commit comments

Comments
 (0)