diff --git a/spring-boot-project/spring-boot-parent/pom.xml b/spring-boot-project/spring-boot-parent/pom.xml
index 94422417f53..ba4913b0637 100644
--- a/spring-boot-project/spring-boot-parent/pom.xml
+++ b/spring-boot-project/spring-boot-parent/pom.xml
@@ -26,6 +26,7 @@
3.5.4
1.1.1
1.0-groovy-2.4
+ 1.10.6
1.0.6.RELEASE
@@ -96,16 +97,6 @@
mockwebserver
3.9.0
-
- org.testcontainers
- testcontainers
- 1.10.6
-
-
- org.testcontainers
- neo4j
- 1.10.6
-
com.vaadin.external.google
android-json
@@ -247,6 +238,16 @@
spock-spring
${spock.version}
+
+ org.testcontainers
+ neo4j
+ ${testcontainers.version}
+
+
+ org.testcontainers
+ testcontainers
+ ${testcontainers.version}
+
org.zeroturnaround
zt-zip
diff --git a/spring-boot-project/spring-boot-test-autoconfigure/pom.xml b/spring-boot-project/spring-boot-test-autoconfigure/pom.xml
index 8fe04ca32bd..435141c7905 100644
--- a/spring-boot-project/spring-boot-test-autoconfigure/pom.xml
+++ b/spring-boot-project/spring-boot-test-autoconfigure/pom.xml
@@ -296,12 +296,12 @@
org.testcontainers
- testcontainers
+ neo4j
test
org.testcontainers
- neo4j
+ testcontainers
test
diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java
index bb7b2a098ad..3e18d24fb46 100644
--- a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java
+++ b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java
@@ -47,7 +47,8 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
public class DataNeo4jTestIntegrationTests {
@ClassRule
- public static Neo4jContainer neo4j = new Neo4jContainer().withAdminPassword(null);
+ public static Neo4jContainer> neo4j = new Neo4jContainer<>()
+ .withAdminPassword(null);
@Autowired
private Session session;
diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java
index 06583af89e4..08afe8509a1 100644
--- a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java
+++ b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java
@@ -44,7 +44,8 @@ import static org.assertj.core.api.Assertions.assertThat;
public class DataNeo4jTestWithIncludeFilterIntegrationTests {
@ClassRule
- public static Neo4jContainer neo4j = new Neo4jContainer().withAdminPassword(null);
+ public static Neo4jContainer> neo4j = new Neo4jContainer<>()
+ .withAdminPassword(null);
@Autowired
private ExampleService service;