Skip to content

Commit d129e65

Browse files
committed
DATAREDIS-726 - Fix url to snapshot repository in readme.
1 parent 941b448 commit d129e65

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

README.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,37 @@ For examples on using the Spring Data Key Value, see the dedicated project, also
1717

1818
# Artifacts
1919

20-
* Maven:
20+
## Maven configuration
2121

22-
~~~~~ xml
22+
Add the Maven dependency:
2323

24+
```xml
2425
<dependency>
2526
<groupId>org.springframework.data</groupId>
2627
<artifactId>spring-data-redis</artifactId>
27-
<version>${version}</version>
28-
</dependency>
28+
<version>${version}.RELEASE</version>
29+
</dependency>
30+
```
2931

30-
<!-- used for nightly builds -->
31-
<repository>
32-
<id>spring-maven-snapshot</id>
33-
<snapshots><enabled>true</enabled></snapshots>
34-
<name>Springframework Maven SNAPSHOT Repository</name>
35-
<url>http://repo.spring.io/libs-release</url>
36-
</repository>
32+
If you'd rather like the latest snapshots of the upcoming major version, use our Maven snapshot repository and declare the appropriate dependency version.
33+
34+
```xml
35+
<dependency>
36+
<groupId>org.springframework.data</groupId>
37+
<artifactId>spring-data-redis</artifactId>
38+
<version>${version}.BUILD-SNAPSHOT</version>
39+
</dependency>
3740

38-
<!-- used for milestone/rc releases -->
3941
<repository>
40-
<id>spring-maven-milestone</id>
41-
<name>Springframework Maven Milestone Repository</name>
42-
<url>http://repo.spring.io/libs-milestone</url>
43-
</repository>
44-
~~~~~
42+
<id>spring-libs-snapshot</id>
43+
<name>Spring Snapshot Repository</name>
44+
<url>http://repo.spring.io/libs-snapshot</url>
45+
</repository>
46+
```
4547

46-
* Gradle:
48+
## Gradle
4749

48-
~~~~~ groovy
50+
```groovy
4951
repositories {
5052
maven { url "http://repo.spring.io/libs-milestone" }
5153
maven { url "http://repo.spring.io/libs-snapshot" }
@@ -55,13 +57,13 @@ repositories {
5557
dependencies {
5658
compile "org.springframework.data:spring-data-redis:${version}"
5759
}
58-
~~~~~
60+
```
5961

6062
# Usage (for the impatient)
6163

6264
* Configure the Redis connector to use (here [jedis](https://github.com/xetorthio/jedis)):
6365

64-
~~~~~ xml
66+
```xml
6567
<beans xmlns="http://www.springframework.org/schema/beans"
6668
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6769
xmlns:p="http://www.springframework.org/schema/p"
@@ -73,22 +75,22 @@ dependencies {
7375
<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"
7476
p:connection-factory="jedisFactory"/>
7577
</beans>
76-
~~~~~
78+
```
7779

7880
* Use `RedisTemplate` to interact with the Redis store:
7981

80-
~~~~~ java
82+
```java
8183
String random = template.randomKey();
8284
template.set(random, new Person("John", "Smith"));
83-
~~~~~
85+
```
8486

8587
* Use Redis 'views' to execute specific operations based on the underlying Redis type:
8688

87-
~~~~~ java
89+
```java
8890
ListOperations<String, Person> listOps = template.listOps();
8991
listOps.rightPush(random, new Person("Jane", "Smith"));
9092
List<Person> peopleOnSecondFloor = listOps.range("users:floor:2", 0, -1);
91-
~~~~~
93+
```
9294

9395
# Building
9496

0 commit comments

Comments
 (0)