Align Bomr with quoting changes in s-b-dependencies build.gradle

This commit is contained in:
Andy Wilkinson 2020-01-25 13:19:27 +00:00
parent d7e18a714d
commit 864093c431

View File

@ -125,8 +125,8 @@ public class UpgradeBom extends DefaultTask {
private void applyChanges(Upgrade upgrade, Path buildFile) throws IOException {
String contents = new String(Files.readAllBytes(buildFile), StandardCharsets.UTF_8);
String modified = contents.replace(
"library('" + upgrade.getLibrary().getName() + "', '" + upgrade.getLibrary().getVersion() + "')",
"library('" + upgrade.getLibrary().getName() + "', '" + upgrade.getVersion() + "')");
"library(\"" + upgrade.getLibrary().getName() + "\", \"" + upgrade.getLibrary().getVersion() + "\")",
"library(\"" + upgrade.getLibrary().getName() + "\", \"" + upgrade.getVersion() + "\")");
Files.write(buildFile, modified.getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE);
}