Skip to content

Commit

Permalink
Merge branch '2.3.x' into 2.4.x
Browse files Browse the repository at this point in the history
Closes gh-24943
  • Loading branch information
snicoll committed Jan 20, 2021
2 parents 80dbbaf + 10b4cb8 commit 85729d2
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
Expand Up @@ -40,6 +40,7 @@
*
* @author Christoph Strobl
* @author Oliver Gierke
* @deprecated since 2.3.9 as Spring Data Solr is deprecated
* @since 1.1.0
*/
@Configuration(proxyBeanMethods = false)
Expand All @@ -48,6 +49,7 @@
@ConditionalOnProperty(prefix = "spring.data.solr.repositories", name = "enabled", havingValue = "true",
matchIfMissing = true)
@Import(SolrRepositoriesRegistrar.class)
@Deprecated
public class SolrRepositoriesAutoConfiguration {

}
Expand Up @@ -30,6 +30,7 @@
*
* @author Christoph Strobl
*/
@Deprecated
class SolrRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSupport {

@Override
Expand Down
Expand Up @@ -19,6 +19,7 @@
import org.springframework.boot.autoconfigure.data.solr.city.City;
import org.springframework.data.repository.Repository;

@Deprecated
public interface CitySolrRepository extends Repository<City, String> {

}
Expand Up @@ -23,9 +23,9 @@
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
import org.springframework.boot.autoconfigure.data.alt.elasticsearch.CityElasticsearchDbRepository;
import org.springframework.boot.autoconfigure.data.alt.jpa.CityJpaRepository;
import org.springframework.boot.autoconfigure.data.alt.mongo.CityMongoDbRepository;
import org.springframework.boot.autoconfigure.data.alt.solr.CitySolrRepository;
import org.springframework.boot.autoconfigure.data.jpa.city.City;
import org.springframework.boot.autoconfigure.data.jpa.city.CityRepository;
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
Expand Down Expand Up @@ -162,7 +162,7 @@ static class TestConfiguration {
@EnableJpaRepositories(
basePackageClasses = org.springframework.boot.autoconfigure.data.alt.jpa.CityJpaRepository.class,
excludeFilters = { @Filter(type = FilterType.ASSIGNABLE_TYPE, value = CityMongoDbRepository.class),
@Filter(type = FilterType.ASSIGNABLE_TYPE, value = CitySolrRepository.class) })
@Filter(type = FilterType.ASSIGNABLE_TYPE, value = CityElasticsearchDbRepository.class) })
@TestAutoConfigurationPackage(City.class)
static class CustomConfiguration {

Expand Down
Expand Up @@ -42,6 +42,7 @@
* @author Christoph Strobl
* @author Oliver Gierke
*/
@Deprecated
class SolrRepositoriesAutoConfigurationTests {

private AnnotationConfigApplicationContext context;
Expand Down
Expand Up @@ -24,6 +24,7 @@
* @author Christoph Strobl
*/
@SolrDocument(collection = "collection1")
@Deprecated
public class City {

@Id
Expand Down
Expand Up @@ -20,6 +20,7 @@
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

@Deprecated
public interface CityRepository extends Repository<City, String> {

Page<City> findByNameStartingWith(String name, Pageable page);
Expand Down
Expand Up @@ -4900,6 +4900,7 @@ https://lucene.apache.org/solr/[Apache Solr] is a search engine.
Spring Boot offers basic auto-configuration for the Solr 5 client library and the abstractions on top of it provided by https://github.com/spring-projects/spring-data-solr[Spring Data Solr].
There is a `spring-boot-starter-data-solr` "`Starter`" for collecting the dependencies in a convenient way.

NOTE: As of Spring Boot 2.3, support for Spring Data Solr has been deprecated and will be removed in a future release.


[[boot-features-connecting-to-solr]]
Expand Down
Expand Up @@ -2,7 +2,7 @@ plugins {
id "org.springframework.boot.starter"
}

description = "Starter for using the Apache Solr search platform with Spring Data Solr"
description = "Starter for using the Apache Solr search platform with Spring Data Solr. Deprecated since 2.3.9"

dependencies {
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
Expand Down

0 comments on commit 85729d2

Please sign in to comment.