Skip to content

Commit 4c1b595

Browse files
committed
build: Exclude spring batch from shadow jar relocation
1 parent 8231d52 commit 4c1b595

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jar.finalizedBy shadowJar
4545
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
4646
enableRelocation true
4747
relocationPrefix "com.redis.kafka.connect.shaded"
48+
relocate 'org.springframework.batch.core', 'org.springframework.batch.core'
49+
mergeServiceFiles()
4850
}
4951

5052
def archiveFilename = "redis-redis-kafka-connect"
@@ -85,4 +87,4 @@ tasks.register('createConfluentArchive', Zip) {
8587
destinationDirectory = layout.buildDirectory.dir('confluent')
8688
}
8789

88-
build.finalizedBy createConfluentArchive
90+
build.finalizedBy createConfluentArchive

0 commit comments

Comments
 (0)