[testframework] Allow to specify custom repository for testing externally (PR#2800)

GitOrigin-RevId: 9a21d8710d87cf41fcae5dcbb6c7c1dfb6ba8cec
This commit is contained in:
Tagir Valeev
2024-07-15 10:19:20 +02:00
committed by intellij-monorepo-bot
parent 3c6a45ad99
commit 3b7c729f5a

View File

@@ -102,6 +102,13 @@ public final class MavenDependencyUtil {
@NotNull
public static List<RemoteRepositoryDescription> getRemoteRepositoryDescriptions() {
String repoForTesting = System.getProperty("maven.repo.for.testing");
if (repoForTesting != null) {
return List.of(new RemoteRepositoryDescription(
"intellij-dependencies",
"IntelliJ Dependencies",
repoForTesting));
}
return REPOS_FOR_TESTING;
}
}