Use repo.maven.apache.org consistently
Maven Central has two canonical URLs [1]: - https://repo1.maven.org - https://repo.maven.apache.org This commit updates the codebase to only use repo.maven.apache.org. Closes gh-33938 [1] https://central.sonatype.org/news/20190715_http_deprecation_update/#canonical-urls
This commit is contained in:
@@ -57,7 +57,7 @@ class MavenResolverGrapeEngineTests {
|
||||
private GrapeEngine createGrapeEngine(RepositoryConfiguration... additionalRepositories) {
|
||||
List<RepositoryConfiguration> repositoryConfigurations = new ArrayList<>();
|
||||
repositoryConfigurations
|
||||
.add(new RepositoryConfiguration("central", URI.create("https://repo1.maven.org/maven2"), false));
|
||||
.add(new RepositoryConfiguration("central", URI.create("https://repo.maven.apache.org/maven2"), false));
|
||||
repositoryConfigurations.addAll(Arrays.asList(additionalRepositories));
|
||||
DependencyResolutionContext dependencyResolutionContext = new DependencyResolutionContext();
|
||||
dependencyResolutionContext.addDependencyManagement(new SpringBootDependenciesDependencyManagement());
|
||||
|
||||
Reference in New Issue
Block a user