Skip to content

Commit db6ef0e

Browse files
Exclude duplicate properties file when building a jar from jars
See gh-29670 and gh-23955
1 parent f80490b commit db6ef0e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

spring-boot-project/spring-boot-cli/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ task fullJar(type: Jar) {
116116
zipTree(configurations.loader.singleFile).matching {
117117
exclude "META-INF/LICENSE.txt"
118118
exclude "META-INF/NOTICE.txt"
119+
exclude "META-INF/spring-boot.properties"
119120
}
120121
}
121122
manifest {

spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ task reproducibleLoaderJar(type: Jar) {
4141
zipTree(configurations.loader.incoming.files.singleFile).matching {
4242
exclude "META-INF/LICENSE.txt"
4343
exclude "META-INF/NOTICE.txt"
44+
exclude "META-INF/spring-boot.properties"
4445
}
4546
}
4647
reproducibleFileOrder = true
@@ -55,6 +56,7 @@ task reproducibleJarModeLayerToolsJar(type: Jar) {
5556
zipTree(configurations.jarmode.incoming.files.singleFile).matching {
5657
exclude "META-INF/LICENSE.txt"
5758
exclude "META-INF/NOTICE.txt"
59+
exclude "META-INF/spring-boot.properties"
5860
}
5961
}
6062
reproducibleFileOrder = true

0 commit comments

Comments
 (0)