mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Exclude duplicate properties file when building a jar from jars
See gh-29670 and gh-23955
This commit is contained in:
parent
f80490bafb
commit
db6ef0e802
@ -116,6 +116,7 @@ task fullJar(type: Jar) {
|
||||
zipTree(configurations.loader.singleFile).matching {
|
||||
exclude "META-INF/LICENSE.txt"
|
||||
exclude "META-INF/NOTICE.txt"
|
||||
exclude "META-INF/spring-boot.properties"
|
||||
}
|
||||
}
|
||||
manifest {
|
||||
|
@ -41,6 +41,7 @@ task reproducibleLoaderJar(type: Jar) {
|
||||
zipTree(configurations.loader.incoming.files.singleFile).matching {
|
||||
exclude "META-INF/LICENSE.txt"
|
||||
exclude "META-INF/NOTICE.txt"
|
||||
exclude "META-INF/spring-boot.properties"
|
||||
}
|
||||
}
|
||||
reproducibleFileOrder = true
|
||||
@ -55,6 +56,7 @@ task reproducibleJarModeLayerToolsJar(type: Jar) {
|
||||
zipTree(configurations.jarmode.incoming.files.singleFile).matching {
|
||||
exclude "META-INF/LICENSE.txt"
|
||||
exclude "META-INF/NOTICE.txt"
|
||||
exclude "META-INF/spring-boot.properties"
|
||||
}
|
||||
}
|
||||
reproducibleFileOrder = true
|
||||
|
Loading…
Reference in New Issue
Block a user