mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.1.x'
This commit is contained in:
+1
-7
@@ -69,8 +69,6 @@ class MavenBuild {
|
||||
|
||||
private final Properties properties = new Properties();
|
||||
|
||||
private String root = "intTest";
|
||||
|
||||
private @Nullable ProjectCallback preparation;
|
||||
|
||||
private @Nullable File projectDir;
|
||||
@@ -104,7 +102,6 @@ class MavenBuild {
|
||||
}
|
||||
|
||||
MavenBuild project(String root, String project) {
|
||||
this.root = root;
|
||||
this.projectDir = new File("src/" + root + "/projects/" + project);
|
||||
return this;
|
||||
}
|
||||
@@ -166,10 +163,7 @@ class MavenBuild {
|
||||
}
|
||||
|
||||
});
|
||||
Path settingsXmlPath = "dockerTest".equals(this.root)
|
||||
? Paths.get("build", "generated-resources", "settings", "settings.xml")
|
||||
: Paths.get("src", "intTest", "projects", "settings.xml");
|
||||
String settingsXml = Files.readString(settingsXmlPath)
|
||||
String settingsXml = Files.readString(Paths.get("build", "generated-resources", "settings", "settings.xml"))
|
||||
.replace("@localCentralUrl@", new File("build/test-maven-repository").toURI().toURL().toString())
|
||||
.replace("@localRepositoryPath@", new File("build/local-maven-repository").getAbsolutePath());
|
||||
Files.writeString(destination.resolve("settings.xml"), settingsXml, StandardOpenOption.CREATE_NEW);
|
||||
|
||||
Reference in New Issue
Block a user