|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
* Copyright 2012-2023 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -141,10 +141,8 @@ class MavenResolverGrapeEngineTests {
|
|
|
|
void resolutionWithCustomResolver() {
|
|
|
|
void resolutionWithCustomResolver() {
|
|
|
|
Map<String, Object> args = new HashMap<>();
|
|
|
|
Map<String, Object> args = new HashMap<>();
|
|
|
|
GrapeEngine grapeEngine = createGrapeEngine();
|
|
|
|
GrapeEngine grapeEngine = createGrapeEngine();
|
|
|
|
grapeEngine.addResolver(createResolver("spring-releases", "https://repo.spring.io/release"));
|
|
|
|
grapeEngine.addResolver(createResolver("spring-milestones", "https://repo.spring.io/milestone"));
|
|
|
|
Map<String, Object> dependency = createDependency("io.spring.docresources", "spring-doc-resources",
|
|
|
|
Map<String, Object> dependency = createDependency("org.springframework", "spring-jcl", "5.3.0-M1");
|
|
|
|
"0.1.1.RELEASE");
|
|
|
|
|
|
|
|
dependency.put("ext", "zip");
|
|
|
|
|
|
|
|
grapeEngine.grab(args, dependency);
|
|
|
|
grapeEngine.grab(args, dependency);
|
|
|
|
assertThat(this.groovyClassLoader.getURLs()).hasSize(1);
|
|
|
|
assertThat(this.groovyClassLoader.getURLs()).hasSize(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|