Remove deprecated spring-boot-starter-redis
This commit is contained in:
parent
fc00e4cbe0
commit
046475a69e
|
@ -57,8 +57,6 @@
|
||||||
<module>spring-boot-starter-mustache</module>
|
<module>spring-boot-starter-mustache</module>
|
||||||
<module>spring-boot-starter-actuator</module>
|
<module>spring-boot-starter-actuator</module>
|
||||||
<module>spring-boot-starter-parent</module>
|
<module>spring-boot-starter-parent</module>
|
||||||
<!-- deprecated but still provided for compatibility with 1.3 -->
|
|
||||||
<module>spring-boot-starter-redis</module>
|
|
||||||
<module>spring-boot-starter-security</module>
|
<module>spring-boot-starter-security</module>
|
||||||
<module>spring-boot-starter-social-facebook</module>
|
<module>spring-boot-starter-social-facebook</module>
|
||||||
<module>spring-boot-starter-social-twitter</module>
|
<module>spring-boot-starter-social-twitter</module>
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<parent>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starters</artifactId>
|
|
||||||
<version>1.5.0.BUILD-SNAPSHOT</version>
|
|
||||||
</parent>
|
|
||||||
<artifactId>spring-boot-starter-redis</artifactId>
|
|
||||||
<name>spring-boot-starter-redis (DEPRECATED)</name>
|
|
||||||
<description>Starter for using Redis key-value data store with Spring Data Redis and
|
|
||||||
the Jedis client. Deprecated as of 1.4 in favor of spring-boot-starter-data-redis</description>
|
|
||||||
<url>http://projects.spring.io/spring-boot/</url>
|
|
||||||
<organization>
|
|
||||||
<name>Pivotal Software, Inc.</name>
|
|
||||||
<url>http://www.spring.io</url>
|
|
||||||
</organization>
|
|
||||||
<properties>
|
|
||||||
<main.basedir>${basedir}/../..</main.basedir>
|
|
||||||
</properties>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.data</groupId>
|
|
||||||
<artifactId>spring-data-redis</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>redis.clients</groupId>
|
|
||||||
<artifactId>jedis</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.basepom.maven</groupId>
|
|
||||||
<artifactId>duplicate-finder-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>duplicate-dependencies</id>
|
|
||||||
<phase>validate</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>check</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<ignoredResourcePatterns>
|
|
||||||
<ignoredResourcePattern>changelog.txt</ignoredResourcePattern>
|
|
||||||
</ignoredResourcePatterns>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
|
@ -1,47 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2012-2016 the original author or authors.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.springframework.boot.starter.redis;
|
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
|
||||||
import org.apache.commons.logging.LogFactory;
|
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@link EnableAutoConfiguration Auto-configuration} to print a deprecation warning about
|
|
||||||
* the starter.
|
|
||||||
*
|
|
||||||
* @author Phillip Webb
|
|
||||||
* @since 1.4.0
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
@Deprecated
|
|
||||||
public class RedisStarterDeprecationWarningAutoConfiguration {
|
|
||||||
|
|
||||||
private static final Log logger = LogFactory
|
|
||||||
.getLog(RedisStarterDeprecationWarningAutoConfiguration.class);
|
|
||||||
|
|
||||||
@PostConstruct
|
|
||||||
public void logWarning() {
|
|
||||||
logger.warn("spring-boot-starter-redis is deprecated as of Spring Boot 1.4, "
|
|
||||||
+ "please migrate to spring-boot-starter-data-redis");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Auto Configure
|
|
||||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
|
||||||
org.springframework.boot.starter.redis.RedisStarterDeprecationWarningAutoConfiguration
|
|
|
@ -1 +0,0 @@
|
||||||
provides: spring-data-redis,jedis
|
|
Loading…
Reference in New Issue