From 3dfacaa1e37d077bb37c8e595e4f3db4f8664f92 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:41:31 +0100 Subject: [PATCH 1/7] Upgrade to MongoDB 3.8.0-beta2 Closes gh-13179 --- spring-boot-project/spring-boot-dependencies/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 6d34aea1a5..fd67526f38 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -125,7 +125,7 @@ 1.0.4 2.18.3 1.7.1 - 3.6.3 + 3.8.0-beta2 6.2.2.jre8 5.1.46 5.8.1.Final From 33fadda4d9ff2e9e10397937feb855948a618361 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:42:59 +0100 Subject: [PATCH 2/7] Upgrade to Mongo Driver Reactive Streams 1.9.0-beta1 Closes gh-13180 --- spring-boot-project/spring-boot-dependencies/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index fd67526f38..1132088e6c 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -124,7 +124,7 @@ 2.2.3 1.0.4 2.18.3 - 1.7.1 + 1.9.0-beta1 3.8.0-beta2 6.2.2.jre8 5.1.46 From 150a19523cf014fda03836eba6d3e24036f50615 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:37:19 +0100 Subject: [PATCH 3/7] Start building against Spring Data Lovelace M3 snapshots See gh-13169 --- .../data/mongo/MongoDataAutoConfiguration.java | 12 ++++++++++++ spring-boot-project/spring-boot-dependencies/pom.xml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java index 14a17c33c8..63c2ad1fe9 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java @@ -18,8 +18,10 @@ package org.springframework.boot.autoconfigure.data.mongo; import java.util.Collections; +import com.mongodb.ClientSessionOptions; import com.mongodb.DB; import com.mongodb.MongoClient; +import com.mongodb.client.ClientSession; import com.mongodb.client.MongoDatabase; import org.springframework.beans.BeanUtils; @@ -182,6 +184,16 @@ public class MongoDataAutoConfiguration { return this.mongoDbFactory.getLegacyDb(); } + @Override + public ClientSession getSession(ClientSessionOptions options) { + return this.mongoDbFactory.getSession(options); + } + + @Override + public MongoDbFactory withSession(ClientSession session) { + return this.mongoDbFactory.withSession(session); + } + } } diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 1132088e6c..d08edcf808 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -155,7 +155,7 @@ 2.0.3.RELEASE 4.0.1.RELEASE 2.0.1.RELEASE - Kay-SR7 + Lovelace-BUILD-SNAPSHOT 0.24.0.RELEASE 5.0.5.RELEASE 2.2.0.BUILD-SNAPSHOT From 795ff45a65a9c13d496fdbcf72d4cbf69af5e7b3 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:39:24 +0100 Subject: [PATCH 4/7] Upgrade to Cassandra Java Driver 3.5.0 Closes gh-13177 --- spring-boot-project/spring-boot-dependencies/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index d08edcf808..62eca1edba 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -42,7 +42,7 @@ 2.1.4 1.7.11 2.6.2 - 3.4.0 + 3.5.0 1.3.4 1.11 2.2.0 From 148997fd43507a74f26d0494e67c5dc3e5714c43 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:40:34 +0100 Subject: [PATCH 5/7] Upgrade to Elasticsearch 6.2.4 Closes gh-13178 --- .../rest/RestClientAutoConfiguration.java | 12 +++++++----- spring-boot-project/spring-boot-dependencies/pom.xml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfiguration.java index ea68b2624d..1f99a2b859 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfiguration.java @@ -62,12 +62,13 @@ public class RestClientAutoConfiguration { @Bean(destroyMethod = "close") @ConditionalOnMissingBean - public RestClient restClient() { - RestClientBuilder builder = configureBuilder(); + public RestClient restClient(RestClientBuilder builder) { return builder.build(); } - protected RestClientBuilder configureBuilder() { + @Bean + @ConditionalOnMissingBean + public RestClientBuilder restClientBuilder() { HttpHost[] hosts = this.properties.getUris().stream().map(HttpHost::create) .toArray(HttpHost[]::new); RestClientBuilder builder = RestClient.builder(hosts); @@ -90,8 +91,9 @@ public class RestClientAutoConfiguration { @Bean @ConditionalOnMissingBean - public RestHighLevelClient restHighLevelClient(RestClient restClient) { - return new RestHighLevelClient(restClient); + public RestHighLevelClient restHighLevelClient( + RestClientBuilder restClientBuilder) { + return new RestHighLevelClient(restClientBuilder); } } diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 62eca1edba..0998baf4da 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -59,7 +59,7 @@ 2.0.3 5.0.7 2.3.28 - 5.6.9 + 6.2.4 3.0.0 2.4.15 2.8.4 From b5185fbe10984e7be5b1bef58688218e1a467cee Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:40:56 +0100 Subject: [PATCH 6/7] Upgrade to Lettuce 5.1.0.M1 Closes gh-13181 --- .../data/redis/RedisAutoConfigurationTests.java | 15 ++++++++++++--- .../spring-boot-dependencies/pom.xml | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationTests.java index 973204396c..658d2f31eb 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationTests.java @@ -28,6 +28,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.connection.RedisClusterConfiguration; import org.springframework.data.redis.connection.RedisNode; import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration.LettuceClientConfigurationBuilder; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; @@ -231,9 +232,17 @@ public class RedisAutoConfigurationTests { .withPropertyValues( "spring.redis.cluster.nodes[0]:" + clusterNodes.get(0), "spring.redis.cluster.nodes[1]:" + clusterNodes.get(1)) - .run((context) -> assertThat(context - .getBean(LettuceConnectionFactory.class).getClusterConnection()) - .isNotNull()); + .run((context) -> { + RedisClusterConfiguration clusterConfiguration = context + .getBean(LettuceConnectionFactory.class) + .getClusterConfiguration(); + assertThat(clusterConfiguration.getClusterNodes()).hasSize(2); + assertThat(clusterConfiguration.getClusterNodes()) + .extracting((node) -> node.getHost() + ":" + node.getPort()) + .containsExactlyInAnyOrder("127.0.0.1:27379", + "127.0.0.1:27380"); + }); + } @Test diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 0998baf4da..143bd6da62 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -116,7 +116,7 @@ 1.1.0 1.1.0 1.2.41 - 5.0.4.RELEASE + 5.1.0.M1 3.6.1 2.10.0 1.2.3 From 38b491018c8c6f02f86dd192dc680206c00779f6 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 15 May 2018 16:43:33 +0100 Subject: [PATCH 7/7] Upgrade to Solr 7.2.1 Closes gh-13182 --- spring-boot-project/spring-boot-dependencies/pom.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 143bd6da62..beb7e00957 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -150,7 +150,7 @@ 1.1.1 1.7.25 1.19 - 6.6.3 + 7.2.1 5.0.6.RELEASE 2.0.3.RELEASE 4.0.1.RELEASE @@ -1531,6 +1531,11 @@ solr-langid ${solr.version} + + org.apache.solr + solr-ltr + ${solr.version} + org.apache.solr solr-solrj