private static ArtifactSpec toArtifactSpec ( DependencyDescriptor desc , String scope ) { return new ArtifactSpec ( scope , desc . getGroup ( ) , desc . getName ( ) , desc . getVersion ( ) , desc . getType ( ) , desc . getClassifier ( ) , desc . getFile ( ) ) ; }
Translate the given dependency descriptor to the an artifact specification while overriding the scope as well .