Skip to content

Commit c07135a

Browse files
committed
fixup! Create spring-boot-cassandra module
1 parent 6b8eba4 commit c07135a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id "org.springframework.boot.auto-configuration"
44
id "org.springframework.boot.configuration-properties"
55
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.docker-test"
67
id "org.springframework.boot.optional-dependencies"
78
}
89

@@ -12,6 +13,12 @@ dependencies {
1213
api(project(":spring-boot-project:spring-boot"))
1314
api("org.apache.cassandra:java-driver-core")
1415

16+
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
17+
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
18+
dockerTestImplementation("org.junit.jupiter:junit-jupiter")
19+
dockerTestImplementation("org.testcontainers:cassandra")
20+
dockerTestImplementation("org.testcontainers:junit-jupiter")
21+
1522
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
1623

1724
testImplementation(project(":spring-boot-project:spring-boot-test"))
Lines changed: 1 addition & 2 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.autoconfigure.cassandra;
17+
package org.springframework.boot.cassandra.autoconfigure;
1818

1919
import com.datastax.oss.driver.api.core.CqlSession;
2020
import com.datastax.oss.driver.api.core.config.DriverConfigLoader;
@@ -26,7 +26,6 @@
2626
import org.springframework.beans.factory.config.BeanPostProcessor;
2727
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
2828
import org.springframework.boot.autoconfigure.AutoConfigurations;
29-
import org.springframework.boot.cassandra.autoconfigure.CassandraAutoConfiguration;
3029
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
3130
import org.springframework.boot.testsupport.container.TestImage;
3231
import org.springframework.context.annotation.Bean;
Lines changed: 1 addition & 2 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.autoconfigure.cassandra;
17+
package org.springframework.boot.cassandra.autoconfigure;
1818

1919
import java.net.InetSocketAddress;
2020
import java.nio.charset.StandardCharsets;
@@ -37,7 +37,6 @@
3737

3838
import org.springframework.beans.factory.BeanCreationException;
3939
import org.springframework.boot.autoconfigure.AutoConfigurations;
40-
import org.springframework.boot.cassandra.autoconfigure.CassandraAutoConfiguration;
4140
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
4241
import org.springframework.boot.testsupport.container.TestImage;
4342
import org.springframework.util.StreamUtils;

0 commit comments

Comments
 (0)