From d8a4fff3a5821cd52632d13732b8c529c8a43715 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 14 Jun 2019 13:42:58 +0100 Subject: [PATCH] Switch away from https://maven.restlet.org as it redirects to http --- .../cli/compiler/grape/AetherGrapeEngineTests.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java index 0fc28d61d5..00b97777a5 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java @@ -156,10 +156,13 @@ public class AetherGrapeEngineTests { @Test public void resolutionWithCustomResolver() { - Map args = new HashMap(); - AetherGrapeEngine grapeEngine = this.createGrapeEngine(); - grapeEngine.addResolver(createResolver("restlet.org", "https://maven.restlet.org")); - grapeEngine.grab(args, createDependency("org.restlet", "org.restlet", "1.1.6")); + Map args = new HashMap<>(); + AetherGrapeEngine grapeEngine = createGrapeEngine(); + grapeEngine.addResolver(createResolver("spring-releases", "https://repo.spring.io/release")); + Map 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); }