Merge branch '2.1.x'

pull/16406/head
Andy Wilkinson 6 years ago
commit e74582d263

@ -142,9 +142,12 @@ public class AetherGrapeEngineTests {
public void resolutionWithCustomResolver() { public void resolutionWithCustomResolver() {
Map<String, Object> args = new HashMap<>(); Map<String, Object> args = new HashMap<>();
AetherGrapeEngine grapeEngine = this.createGrapeEngine(); AetherGrapeEngine grapeEngine = this.createGrapeEngine();
grapeEngine grapeEngine.addResolver(
.addResolver(createResolver("restlet.org", "https://maven.restlet.org")); 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…
Cancel
Save