spring-boot/buildSrc
Andy Wilkinson 63402a2984 Truncate files before writing new content to them
Previously, UpgradeApplicator would open build.gradle
using open options that left the fields existing content intact. It
would then write the new content at the beginning of the file. If
the new content was n bytes shorter than the existing content, this
would leave n bytes of the existing content at the end of the file.

This commit updates UpgradeApplicator to truncate the existing file
when it opens it. This ensures that the existing content is
completely replaced by the new content, irrespective of their lengths.

Closes gh-25256
2021-02-12 12:37:23 +00:00
..
src Truncate files before writing new content to them 2021-02-12 12:37:23 +00:00
build.gradle Polish "Remove duplicate declaration of jackson-databind" 2021-02-11 10:08:34 +00:00
gradle.properties
settings.gradle