You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 years ago
..
src Truncate files before writing new content to them 4 years ago
build.gradle Polish "Remove duplicate declaration of jackson-databind" 4 years ago
gradle.properties Merge branch '2.2.x' into 2.3.x 4 years ago
settings.gradle Adopt Gradle Enterprise Conventions Plugin 5 years ago