Skip to content

Commit 6b5c2f0

Browse files
committed
fix for GRAILS-6420 "Installing plugins from maven". Functional test provided in separate commit
1 parent e3d4b34 commit 6b5c2f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/java/org/codehaus/groovy/grails/resolve/IvyDependencyManager.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,11 @@ class IvyDomainSpecificLanguageEvaluator {
10801080
if (dependency.group && name && dependency.version) {
10811081
boolean isExcluded = currentPluginBeingConfigured ? isExcludedFromPlugin(currentPluginBeingConfigured, name) : isExcluded(name)
10821082
if (!isExcluded) {
1083-
def attrs = ["m:classifier":dependency.classifier ?: 'jar']
1083+
def attrs = [:]
1084+
if(dependency.classifier) {
1085+
attrs["m:classifier"] = dependency.classifier
1086+
}
1087+
10841088
def mrid
10851089
if (dependency.branch) {
10861090
mrid = ModuleRevisionId.newInstance(dependency.group, name, dependency.branch, dependency.version, attrs)

0 commit comments

Comments
 (0)