Add RUNTME scope to transitive dependencies in CLI

Fixes gh-977
This commit is contained in:
Dave Syer
2014-05-28 18:17:39 +01:00
parent e7aa192d82
commit 6fbafc3ca4

View File

@@ -195,7 +195,8 @@ public class AetherGrapeEngine implements GrapeEngine {
.getManagedDependencies());
DependencyRequest dependencyRequest = new DependencyRequest(collectRequest,
DependencyFilterUtils.classpathFilter(JavaScopes.COMPILE));
DependencyFilterUtils.classpathFilter(JavaScopes.COMPILE,
JavaScopes.RUNTIME));
DependencyResult dependencyResult = this.repositorySystem
.resolveDependencies(this.session, dependencyRequest);