From 9cba05da90ef3cbe47c5896c2ab12269cc319338 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 6 Feb 2023 13:19:30 +0000 Subject: [PATCH] Upgrade to Neo4j Java Driver 5.4.0 Closes gh-34099 --- .../boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java | 3 +-- spring-boot-project/spring-boot-dependencies/build.gradle | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java index 65a456845a..c9dd50ed1b 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java @@ -113,8 +113,7 @@ class Neo4jAutoConfigurationTests { void maxTransactionRetryTime() { Neo4jProperties properties = new Neo4jProperties(); properties.setMaxTransactionRetryTime(Duration.ofSeconds(2)); - assertThat(mapDriverConfig(properties)).extracting("retrySettings") - .hasFieldOrPropertyWithValue("maxRetryTimeMs", 2000L); + assertThat(mapDriverConfig(properties).maxTransactionRetryTimeMillis()).isEqualTo(2000L); } @Test diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index f5dfa3adf8..14a12dd6f3 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -1004,7 +1004,7 @@ bom { ] } } - library("Neo4j Java Driver", "5.2.0") { + library("Neo4j Java Driver", "5.4.0") { group("org.neo4j.driver") { modules = [ "neo4j-java-driver"