Merge branch '4.1.x'

This commit is contained in:
Stéphane Nicoll
2026-08-04 16:37:53 +02:00
@@ -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);