Skip to content

Commit 01de1d1

Browse files
author
Costin Leau
committed
update readme
1 parent 5363295 commit 01de1d1

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ For examples on using the Spring Data Key Value, see the dedicated project, also
2929
<id>spring-maven-snapshot</id>
3030
<snapshots><enabled>true</enabled></snapshots>
3131
<name>Springframework Maven SNAPSHOT Repository</name>
32-
<url>http://maven.springframework.org/snapshot</url>
32+
<url>http://repo.springsource.org/libs-release</url>
3333
</repository>
3434

3535
<!-- used for milestone/rc releases -->
3636
<repository>
3737
<id>spring-maven-milestone</id>
3838
<name>Springframework Maven Milestone Repository</name>
39-
<url>http://maven.springframework.org/milestone</url>
39+
<url>http://repo.springsource.org/libs-milestone</url>
4040
</repository>
4141
~~~~~
4242

4343
* Gradle:
4444

4545
~~~~~ groovy
4646
repositories {
47-
mavenRepo name: "spring-snapshot", urls: "http://maven.springframework.org/snapshot"
48-
mavenRepo name: "spring-milestone", urls: "http://maven.springframework.org/milestone"
47+
maven { url "http://repo.springsource.org/libs-milestone" }
48+
maven { url "http://repo.springsource.org/libs-snapshot" }
4949
}
5050
5151
// used for nightly builds
@@ -54,8 +54,8 @@ dependencies {
5454
}
5555
~~~~~
5656

57-
Latest GA release is _1.0.0.RELEASE_
58-
Latest nightly is _1.0.1.BUILD-SNAPSHOT_
57+
Latest GA release is _1.0.1.RELEASE_
58+
Latest nightly is _1.0.2.BUILD-SNAPSHOT_
5959

6060
# Usage (for the impatient)
6161

build.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,22 +150,18 @@ task schemaZip(type: Zip) {
150150
it.path.endsWith('META-INF' + File.separator + 'spring.schemas')
151151
}?.withInputStream { schemas.load(it) }
152152

153-
ext.paths = [] as Set
154-
155153
for (def key : schemas.keySet()) {
156154
def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1')
155+
def alias = key.replaceAll(/http.*schema.(.*).(spring-.*)/, '$2')
157156
assert shortName != key
158157
File xsdFile = sourceSets.main.resources.find {
159158
it.path.replace('\\', '/').endsWith(schemas.get(key))
160159
}
161160
assert xsdFile != null
162-
def input = xsdFile.path
163-
164-
if (!paths.contains(input)) {
165-
paths.add(input)
166-
into (shortName) {
167-
from input
168-
}
161+
162+
into (shortName) {
163+
from xsdFile.path
164+
rename { String fileName -> alias }
169165
}
170166
}
171167
}

0 commit comments

Comments
 (0)