Skip to content

Commit

Permalink
Enable milestone repositories for Boot snapshot versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Jan 17, 2025
1 parent ad96d0e commit c3b83ad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2024 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -143,6 +143,7 @@ private List<RemoteRepository> getRepositories(Dependency dependency, Version bo
String qualifier = bootVersion.getQualifier().getId();
if (qualifier.contains("SNAPSHOT")) {
repositories.computeIfAbsent("spring-snapshots", this::repositoryForId);
repositories.computeIfAbsent("spring-milestones", this::repositoryForId);
}
else if (MILESTONE_PATTERN.matcher(qualifier).matches()) {
repositories.computeIfAbsent("spring-milestones", this::repositoryForId);
Expand Down

0 comments on commit c3b83ad

Please sign in to comment.