Skip to content

Commit a0da292

Browse files
committed
#146 - Polishing.
1 parent dfc1bf0 commit a0da292

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

redis/cluster/pom.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@
1818
<groupId>org.springframework.boot</groupId>
1919
<artifactId>spring-boot-starter-redis</artifactId>
2020
</dependency>
21+
2122
<dependency>
2223
<groupId>${project.groupId}</groupId>
2324
<artifactId>spring-data-redis-example-utils</artifactId>
2425
<version>${project.version}</version>
2526
<scope>test</scope>
2627
</dependency>
2728

28-
<!-- remove this one when DATAREDIS-315 has been merged -->
2929
<dependency>
30-
<groupId>org.springframework.data</groupId>
31-
<artifactId>spring-data-redis</artifactId>
32-
<version>1.7.0.DATAREDIS-315-SNAPSHOT</version>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-configuration-processor</artifactId>
32+
<optional>true</optional>
3333
</dependency>
34+
3435
</dependencies>
3536

3637
</project>

redis/cluster/src/main/java/example/springdata/redis/cluster/AppConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 the original author or authors.
2+
* Copyright 2015-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

redis/cluster/src/main/java/example/springdata/redis/cluster/ClusterConfigurationProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 the original author or authors.
2+
* Copyright 2015-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,12 +24,13 @@
2424
* Type safe representation of {@code spring.redis.cluster.*} properties in {@literal application.properties}.
2525
*
2626
* @author Christoph Strobl
27+
* @author Oliver Gierke
2728
*/
2829
@Component
2930
@ConfigurationProperties(prefix = "spring.redis.cluster")
3031
public class ClusterConfigurationProperties {
3132

32-
List<String> nodes;
33+
private List<String> nodes;
3334

3435
/**
3536
* Get initial collection of known cluster nodes in format {@code host:port}.
@@ -43,5 +44,4 @@ public List<String> getNodes() {
4344
public void setNodes(List<String> nodes) {
4445
this.nodes = nodes;
4546
}
46-
4747
}

redis/cluster/src/test/java/example/springdata/redis/cluster/BasicUsageTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 the original author or authors.
2+
* Copyright 2015-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,6 +19,8 @@
1919
import static org.hamcrest.core.IsCollectionContaining.*;
2020
import static org.junit.Assert.*;
2121

22+
import example.springdata.redis.test.util.RequiresRedisServer;
23+
2224
import java.util.Arrays;
2325

2426
import org.junit.Before;
@@ -34,8 +36,6 @@
3436
import org.springframework.data.redis.core.RedisTemplate;
3537
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
3638

37-
import example.springdata.redis.test.util.RequiresRedisServer;
38-
3939
/**
4040
* {@link BasicUsageTests} shows general usage of {@link RedisTemplate} and {@link RedisOperations} in a clustered
4141
* environment.

0 commit comments

Comments
 (0)