Skip to content

Commit dfbd2ac

Browse files
authored
make generation of git.properties optional (#5018)
To support building from a source release, allow the gitProperties task to fail without failing the build.
1 parent 63a5498 commit dfbd2ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/standalone/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ bootJar {
146146
finalizedBy copyBootJarToBin
147147
}
148148

149+
// Support building standalone from source release (no .git)
150+
gitProperties {
151+
failOnNoGitDirectory = false
152+
}
153+
149154
// Gradle boot disables the default jar task. So need to now make
150155
// install task depend on bootJar such that it finds the required jar file
151156
// https://github.com/spring-projects/spring-boot/issues/13187

0 commit comments

Comments
 (0)