mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Align Bomr with quoting changes in s-b-dependencies build.gradle
This commit is contained in:
parent
d7e18a714d
commit
864093c431
@ -125,8 +125,8 @@ public class UpgradeBom extends DefaultTask {
|
|||||||
private void applyChanges(Upgrade upgrade, Path buildFile) throws IOException {
|
private void applyChanges(Upgrade upgrade, Path buildFile) throws IOException {
|
||||||
String contents = new String(Files.readAllBytes(buildFile), StandardCharsets.UTF_8);
|
String contents = new String(Files.readAllBytes(buildFile), StandardCharsets.UTF_8);
|
||||||
String modified = contents.replace(
|
String modified = contents.replace(
|
||||||
"library('" + upgrade.getLibrary().getName() + "', '" + upgrade.getLibrary().getVersion() + "')",
|
"library(\"" + upgrade.getLibrary().getName() + "\", \"" + upgrade.getLibrary().getVersion() + "\")",
|
||||||
"library('" + upgrade.getLibrary().getName() + "', '" + upgrade.getVersion() + "')");
|
"library(\"" + upgrade.getLibrary().getName() + "\", \"" + upgrade.getVersion() + "\")");
|
||||||
Files.write(buildFile, modified.getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE);
|
Files.write(buildFile, modified.getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user