73 changed files with 487 additions and 433 deletions
@ -1,7 +1,3 @@
@@ -1,7 +1,3 @@
|
||||
# Failure Analyzers |
||||
org.springframework.boot.diagnostics.FailureAnalyzer=\ |
||||
org.springframework.boot.autoconfigure.data.redis.RedisUrlSyntaxFailureAnalyzer |
||||
|
||||
# Depends on Database Initialization Detectors |
||||
org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitializationDetector=\ |
||||
org.springframework.boot.autoconfigure.session.JdbcIndexedSessionRepositoryDependsOnDatabaseInitializationDetector |
||||
|
||||
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
/* |
||||
* Copyright 2012-present 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 |
||||
* |
||||
* https://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. |
||||
*/ |
||||
|
||||
|
||||
plugins { |
||||
id "java-library" |
||||
id "org.springframework.boot.auto-configuration" |
||||
id "org.springframework.boot.configuration-properties" |
||||
id "org.springframework.boot.deployed" |
||||
id "org.springframework.boot.docker-test" |
||||
id "org.springframework.boot.optional-dependencies" |
||||
} |
||||
|
||||
description = "Spring Boot Data Redis" |
||||
|
||||
dependencies { |
||||
api(project(":spring-boot-project:spring-boot")) |
||||
api("io.lettuce:lettuce-core") |
||||
api("org.springframework.data:spring-data-redis") |
||||
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure")) |
||||
optional("redis.clients:jedis") |
||||
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-test")) |
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker")) |
||||
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure"))) |
||||
dockerTestImplementation("ch.qos.logback:logback-classic") |
||||
dockerTestImplementation("com.redis:testcontainers-redis") |
||||
dockerTestImplementation("org.junit.jupiter:junit-jupiter") |
||||
dockerTestImplementation("org.testcontainers:junit-jupiter") |
||||
|
||||
testImplementation(project(":spring-boot-project:spring-boot-test")) |
||||
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) |
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic") |
||||
} |
||||
15
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/data/redis/RedisRepositoriesAutoConfigurationTests.java → spring-boot-project/spring-boot-data-redis/src/dockerTest/java/org/springframework/boot/data/redis/autoconfigure/RedisRepositoriesAutoConfigurationTests.java
15
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/data/redis/RedisRepositoriesAutoConfigurationTests.java → spring-boot-project/spring-boot-data-redis/src/dockerTest/java/org/springframework/boot/data/redis/autoconfigure/RedisRepositoriesAutoConfigurationTests.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/ClientResourcesBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/ClientResourcesBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/ClientResourcesBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/ClientResourcesBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/JedisClientConfigurationBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/JedisClientConfigurationBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/JedisClientConfigurationBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/JedisClientConfigurationBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/LettuceClientConfigurationBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/LettuceClientConfigurationBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/LettuceClientConfigurationBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/LettuceClientConfigurationBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/LettuceClientOptionsBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/LettuceClientOptionsBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/LettuceClientOptionsBuilderCustomizer.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/LettuceClientOptionsBuilderCustomizer.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/PropertiesRedisConnectionDetails.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/PropertiesRedisConnectionDetails.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/PropertiesRedisConnectionDetails.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/PropertiesRedisConnectionDetails.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisRepositoriesAutoConfiguration.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/RedisRepositoriesAutoConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisRepositoriesAutoConfiguration.java → spring-boot-project/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/RedisRepositoriesAutoConfiguration.java
@ -0,0 +1,319 @@
@@ -0,0 +1,319 @@
|
||||
{ |
||||
"groups": [], |
||||
"properties": [ |
||||
{ |
||||
"name": "spring.data.redis.repositories.enabled", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Whether to enable Redis repositories.", |
||||
"defaultValue": true |
||||
}, |
||||
{ |
||||
"name": "spring.data.redis.ssl", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.ssl.enabled", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.client-name", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.client-name", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.client-type", |
||||
"type": "org.springframework.boot.data.redis.autoconfigure.RedisProperties$ClientType", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.client-type", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.cluster.max-redirects", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.cluster.max-redirects", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.cluster.nodes", |
||||
"type": "java.util.List<java.lang.String>", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.cluster.nodes", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.connect-timeout", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.connect-timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.database", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.database", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.host", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.host", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.jedis.pool.enabled", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.jedis.pool.max-active", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.jedis.pool.max-idle", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.jedis.pool.max-wait", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.jedis.pool.min-idle", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.jedis.pool.time-between-eviction-runs", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.cluster.refresh.adaptive", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.lettuce.cluster.refresh.adaptive", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.cluster.refresh.dynamic-refresh-sources", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.lettuce.cluster.refresh.dynamic-refresh-sources", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.cluster.refresh.period", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.lettuce.cluster.refresh.period", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.pool.enabled", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.pool.max-active", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.pool.max-idle", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.pool.max-wait", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.pool.min-idle", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.pool.time-between-eviction-runs", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.lettuce.shutdown-timeout", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.lettuce.shutdown-timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.password", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.password", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.port", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.port", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.sentinel.master", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.sentinel.master", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.sentinel.nodes", |
||||
"type": "java.util.List<java.lang.String>", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.sentinel.nodes", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.sentinel.password", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.sentinel.password", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.sentinel.username", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.sentinel.username", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.ssl", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.ssl", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.timeout", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.url", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.url", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.redis.username", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.data.redis.username", |
||||
"level": "error" |
||||
} |
||||
} |
||||
], |
||||
"hints": [ |
||||
{ |
||||
"name": "spring.data.redis.lettuce.read-from", |
||||
"values": [ |
||||
{ |
||||
"value": "any", |
||||
"description": "Read from any node." |
||||
}, |
||||
{ |
||||
"value": "any-replica", |
||||
"description": "Read from any replica node." |
||||
}, |
||||
{ |
||||
"value": "lowest-latency", |
||||
"description": "Read from the node with the lowest latency during topology discovery." |
||||
}, |
||||
{ |
||||
"value": "regex:", |
||||
"description": "Read from any node that has RedisURI matching with the given pattern." |
||||
}, |
||||
{ |
||||
"value": "replica", |
||||
"description": "Read from the replica only." |
||||
}, |
||||
{ |
||||
"value": "replica-preferred", |
||||
"description": "Read preferred from replica and fall back to upstream if no replica is available." |
||||
}, |
||||
{ |
||||
"value": "subnet:", |
||||
"description": "Read from any node in the subnets." |
||||
}, |
||||
{ |
||||
"value": "upstream", |
||||
"description": "Read from the upstream only." |
||||
}, |
||||
{ |
||||
"value": "upstream-preferred", |
||||
"description": "Read preferred from the upstream and fall back to a replica if the upstream is not available." |
||||
} |
||||
], |
||||
"providers": [ |
||||
{ |
||||
"name": "any" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
# Failure Analyzers |
||||
org.springframework.boot.diagnostics.FailureAnalyzer=\ |
||||
org.springframework.boot.data.redis.autoconfigure.RedisUrlSyntaxFailureAnalyzer |
||||
|
||||
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
org.springframework.boot.data.redis.autoconfigure.RedisAutoConfiguration |
||||
org.springframework.boot.data.redis.autoconfigure.RedisReactiveAutoConfiguration |
||||
org.springframework.boot.data.redis.autoconfigure.RedisRepositoriesAutoConfiguration |
||||
4
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/PropertiesRedisConnectionDetailsTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/PropertiesRedisConnectionDetailsTests.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/PropertiesRedisConnectionDetailsTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/PropertiesRedisConnectionDetailsTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationJedisTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisAutoConfigurationJedisTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationJedisTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisAutoConfigurationJedisTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationLettuceWithoutCommonsPool2Tests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisAutoConfigurationLettuceWithoutCommonsPool2Tests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationLettuceWithoutCommonsPool2Tests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisAutoConfigurationLettuceWithoutCommonsPool2Tests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisReactiveAutoConfigurationTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisReactiveAutoConfigurationTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisReactiveAutoConfigurationTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisReactiveAutoConfigurationTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisUrlSyntaxFailureAnalyzerTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisUrlSyntaxFailureAnalyzerTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisUrlSyntaxFailureAnalyzerTests.java → spring-boot-project/spring-boot-data-redis/src/test/java/org/springframework/boot/data/redis/autoconfigure/RedisUrlSyntaxFailureAnalyzerTests.java
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
# AutoConfigureDataRedis auto-configuration imports |
||||
org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration |
||||
org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration |
||||
org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration |
||||
org.springframework.boot.data.redis.autoconfigure.RedisAutoConfiguration |
||||
org.springframework.boot.data.redis.autoconfigure.RedisReactiveAutoConfiguration |
||||
org.springframework.boot.data.redis.autoconfigure.RedisRepositoriesAutoConfiguration |
||||
org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration |
||||
optional:org.springframework.boot.testcontainers.service.connection.ServiceConnectionAutoConfiguration |
||||
|
||||
Loading…
Reference in new issue