mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
maven libraries: include dependencies with scope=runtime (IDEA-190400)
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ public class ArtifactRepositoryManager {
|
||||
);
|
||||
final ArtifactRequestBuilder builder = new ArtifactRequestBuilder(kind);
|
||||
collectResult.getRoot().accept(new TreeDependencyVisitor(
|
||||
new FilteringDependencyVisitor(builder, DependencyFilterUtils.classpathFilter(JavaScopes.COMPILE))
|
||||
new FilteringDependencyVisitor(builder, DependencyFilterUtils.classpathFilter(JavaScopes.COMPILE, JavaScopes.RUNTIME))
|
||||
));
|
||||
requests = builder.getRequests();
|
||||
}
|
||||
|
||||
+5
@@ -44,4 +44,9 @@ public class ArtifactRepositoryManagerTest extends UsefulTestCase {
|
||||
Collection<File> files = myRepositoryManager.resolveDependency("junit", "junit", "4.12", false);
|
||||
assertSameElements(ContainerUtil.map(files, File::getName), "junit-4.12.jar");
|
||||
}
|
||||
|
||||
public void testResolveRuntimeDependencies() throws Exception {
|
||||
Collection<File> files = myRepositoryManager.resolveDependency("com.netflix.feign", "feign-jackson", "8.18.0", true);
|
||||
assertContainsElements(ContainerUtil.map(files, File::getName), "feign-core-8.18.0.jar");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user