Skip to content

Commit 83e3128

Browse files
committed
deps: Upgraded spring-batch-redis
1 parent 8d8b758 commit 83e3128

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ subprojects { p ->
135135
}
136136
}
137137
}
138+
139+
configurations.all {
140+
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
141+
if (details.requested.name == 'lettuce-core' ) {
142+
details.useVersion lettuceVersion
143+
}
144+
}
145+
}
138146
}
139147

140148
boolean hasTestsAt(File testDir) {

core/redis-kafka-connect/redis-kafka-connect.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
implementation 'org.apache.commons:commons-pool2'
2222
implementation 'org.slf4j:slf4j-api'
2323
compileOnly 'org.apache.kafka:connect-api'
24-
compileOnly 'org.apache.kafka:connect-json'
24+
compileOnly 'org.apache.kafka:connect-json'
2525
testImplementation 'org.apache.kafka:connect-api'
2626
testImplementation 'org.apache.kafka:connect-json'
2727
testImplementation 'org.awaitility:awaitility'
@@ -42,17 +42,13 @@ eclipse {
4242

4343
jar.finalizedBy shadowJar
4444

45-
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
46-
import java.time.LocalDateTime
47-
import java.time.format.DateTimeFormatter
48-
49-
tasks.named('shadowJar', ShadowJar) {
45+
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
5046
enableRelocation true
5147
relocationPrefix "com.redis.kafka.connect.shaded"
5248
}
5349

5450
def archiveFilename = "redis-redis-kafka-connect"
55-
def releaseDate = DateTimeFormatter.ISO_LOCAL_DATE.format(LocalDateTime.now())
51+
def releaseDate = java.time.format.DateTimeFormatter.ISO_LOCAL_DATE.format(java.time.LocalDateTime.now())
5652

5753
tasks.register('prepareConfluentArchive', Copy) {
5854
group = "Confluent"

core/redis-kafka-connect/src/test/java/com/redis/kafka/connect/AbstractSinkIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void putJSON() throws JsonProcessingException {
298298
}
299299
put(topic, RedisType.JSON, records);
300300
for (Person person : persons) {
301-
String json = redisConnection.sync().jsonGet(topic + ":" + person.getId());
301+
String json = redisConnection.sync().jsonGet(topic + ":" + person.getId()).get(0).toString();
302302
assertEquals(person, mapper.readValue(json, Person.class));
303303
}
304304
}

core/redis-kafka-connect/src/test/java/com/redis/kafka/connect/AbstractSourceIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ private Compare values(Struct struct) {
460460
case KeyValue.TYPE_HASH:
461461
return compare(commands.hgetall(key), struct.getMap(ToStructFunction.FIELD_HASH));
462462
case KeyValue.TYPE_JSON:
463-
return compare(commands.jsonGet(key, "."), struct.getString(ToStructFunction.FIELD_JSON));
463+
return compare(commands.jsonGet(key).get(0).toString(), struct.getString(ToStructFunction.FIELD_JSON));
464464
case KeyValue.TYPE_LIST:
465465
return compare(commands.lrange(key, 0, -1), struct.getArray(ToStructFunction.FIELD_LIST));
466466
case KeyValue.TYPE_SET:

gradle.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ targetCompatibility = 17
2121
reproducibleBuild = true
2222

2323
asciidoctorVersion = 3.3.2
24-
bootPluginVersion = 3.3.5
24+
bootPluginVersion = 3.4.2
2525
dependencyPluginVersion = 1.1.6
2626
gitPluginVersion = 3.0.0
2727
jacocoPluginVersion = 0.8.12
2828
kordampBuildVersion = 3.4.0
2929
kordampPluginVersion = 0.54.0
3030
shadowPluginVersion = 8.1.8
3131

32-
lettucemodVersion = 4.1.0
33-
springBatchRedisVersion = 4.5.1-SNAPSHOT
34-
testcontainersRedisVersion = 2.2.2
32+
lettucemodVersion = 4.2.0
33+
lettuceVersion = 6.5.2.RELEASE
34+
springBatchRedisVersion = 4.6.2
35+
testcontainersRedisVersion = 2.2.3
3536

3637
org.gradle.daemon = false
3738
org.gradle.caching = false

0 commit comments

Comments
 (0)