Add commercial repositories to smoke tests.

This commit is contained in:
Mark Paluch
2024-02-13 15:23:00 +01:00
parent b62d8202ca
commit 8574cafa8b
3 changed files with 46 additions and 1 deletions

View File

@@ -365,7 +365,8 @@ class MavenBuildSystem implements BuildSystem {
logger.log(iteration, "🚬 Running smoke test…");
boolean mavenCentral = iteration.isPublic();
String profile = mavenCentral ? "maven-central" : "artifactory";
boolean commercial = iteration.isCommercial();
String profile = commercial ? "commercial" : (mavenCentral ? "maven-central" : "artifactory");
ModuleIteration module = iteration.getModule(BUILD);
@@ -380,6 +381,7 @@ class MavenBuildSystem implements BuildSystem {
CommandLine arguments = CommandLine.of(Goal.CLEAN, VERIFY, //
profile(profile), //
arg("s").withValue("settings.xml"), //
arg("spring-data-bom.version").withValue(iteration.getReleaseTrainNameAndVersion())) //
.andIf(mavenCentral, arg("stagingRepository").withValue(stagingRepository.getId()));