From 65e7d3cdec167f7f7cb944d95fb7994d8e9e2aa0 Mon Sep 17 00:00:00 2001 From: Tako Schotanus Date: Wed, 4 Feb 2015 20:57:34 +0100 Subject: [PATCH] The `aetherUtils.isOptional()` wasn't taking into account the actual optional state of the maven artifact (#113) --- .../src/main/java/com/redhat/ceylon/cmr/maven/AetherUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven/src/main/java/com/redhat/ceylon/cmr/maven/AetherUtils.java b/maven/src/main/java/com/redhat/ceylon/cmr/maven/AetherUtils.java index 325efc3..923065b 100644 --- a/maven/src/main/java/com/redhat/ceylon/cmr/maven/AetherUtils.java +++ b/maven/src/main/java/com/redhat/ceylon/cmr/maven/AetherUtils.java @@ -100,7 +100,7 @@ MavenArtifactInfo[] getDependencies(InputStream pomXml) { } static boolean isOptional(MavenArtifactInfo info) { - return !(info.getScope() == ScopeType.COMPILE || info.getScope() == ScopeType.RUNTIME); + return info.isOptional() || !(info.getScope() == ScopeType.COMPILE || info.getScope() == ScopeType.RUNTIME); } void overrideSettingsXml(String settingsXml) {