Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.3.2
-
Fix Version/s: 1.3.3
-
Component/s: Project infrastructure
-
Labels:None
Description
Grails plugin does not have classifier in maven.
But grails 1.3.2 defaults to a jar classifier as a result can't find the plugins.
The bug was introduced by aaa6420a02aa3389f6856919cddf25b51e18098a ( a fix to GRAILS-6315 ).
Revert part of that commit allowed me to install plugins again.
diff --git a/src/java/org/codehaus/groovy/grails/resolve/IvyDependencyManager.groovy b/src/java/org/codehaus/groovy/grails/resolve/IvyDependencyManager.groovy
index 65855b4..07c9964 100644
--- a/src/java/org/codehaus/groovy/grails/resolve/IvyDependencyManager.groovy
+++ b/src/java/org/codehaus/groovy/grails/resolve/IvyDependencyManager.groovy
@@ -1125,7 +1125,11 @@ class IvyDomainSpecificLanguageEvaluator {
boolean isExcluded = currentPluginBeingConfigured ? isExcludedFromPlugin(currentPluginBeingConfigured, name) : isExcluded(name)
if(!isExcluded) {
- def attrs = ["m:classifier":dependency.classifier ?: 'jar']
+ def attrs = [:]
+ if(dependency.classifier) {
+ attrs["m:classifier"] = dependency.classifier
+ }
+
def mrid
if(dependency.branch) {
mrid = ModuleRevisionId.newInstance(dependency.group, name, dependency.branch, dependency.version, attrs)
Issue Links
| This issue is duplicated by: | ||||
| GRAILS-6427 | Non-jar dependencies cannot be resolved |
|
|
|
Workaround is to define a URLResolver for the repository instead of using the mavenRepo method: