public Dependency map(@NotNull final MavenDependency mavenDependency) {
List<Exclusion> excludes = Lists.transform(mavenDependency.getExclusions(), MAVEN_EXCLUSION_TO_EXCLUSION_FUNCTION);
boolean hasWildcardExclude = Iterables.removeIf(mavenDependency.getExclusions(), IS_WILDCARD_EXCLUDE);
boolean transitive = !hasWildcardExclude;
return new Dependency(mavenDependency.getGroupId(), mavenDependency.getArtifactId(), mavenDependency.getVersion(),
<BUG>getScope(mavenDependency.getScope()), excludes, transitive);
}</BUG>
private String getScope(Scope scope) {
if (scope == Scope.TEST) {
return "testCompile";

public Dependency map(@NotNull final MavenDependency mavenDependency) {
List<Exclusion> excludes = Lists.transform(mavenDependency.getExclusions(), MAVEN_EXCLUSION_TO_EXCLUSION_FUNCTION);
boolean hasWildcardExclude = Iterables.removeIf(mavenDependency.getExclusions(), IS_WILDCARD_EXCLUDE);
boolean transitive = !hasWildcardExclude;
return new Dependency(mavenDependency.getGroupId(), mavenDependency.getArtifactId(), mavenDependency.getVersion(),
Optional.fromNullable(mavenDependency.getClassifier()), getScope(mavenDependency.getScope()), excludes, transitive);
}
private String getScope(Scope scope) {
if (scope == Scope.TEST) {
return "testCompile";
