From 864093c431b5c9a494f320f351ff38e28b01d4bb Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sat, 25 Jan 2020 13:19:27 +0000 Subject: [PATCH] Align Bomr with quoting changes in s-b-dependencies build.gradle --- .../org/springframework/boot/build/bom/bomr/UpgradeBom.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeBom.java b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeBom.java index 7da198a5f1..3991269a41 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeBom.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeBom.java @@ -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); }