mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Switch away from https://maven.restlet.org as it redirects to http
This commit is contained in:
parent
9d71be8945
commit
d8a4fff3a5
@ -156,10 +156,13 @@ public class AetherGrapeEngineTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void resolutionWithCustomResolver() {
|
public void resolutionWithCustomResolver() {
|
||||||
Map<String, Object> args = new HashMap<String, Object>();
|
Map<String, Object> args = new HashMap<>();
|
||||||
AetherGrapeEngine grapeEngine = this.createGrapeEngine();
|
AetherGrapeEngine grapeEngine = createGrapeEngine();
|
||||||
grapeEngine.addResolver(createResolver("restlet.org", "https://maven.restlet.org"));
|
grapeEngine.addResolver(createResolver("spring-releases", "https://repo.spring.io/release"));
|
||||||
grapeEngine.grab(args, createDependency("org.restlet", "org.restlet", "1.1.6"));
|
Map<String, Object> dependency = createDependency("io.spring.docresources", "spring-doc-resources",
|
||||||
|
"0.1.1.RELEASE");
|
||||||
|
dependency.put("ext", "zip");
|
||||||
|
grapeEngine.grab(args, dependency);
|
||||||
assertThat(this.groovyClassLoader.getURLs().length).isEqualTo(1);
|
assertThat(this.groovyClassLoader.getURLs().length).isEqualTo(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user