Don't copy extendsFrom configs for resolvableMetadataConfiguration
Gradle's detached configurations doesn't respect extends from relation to other configurations due to gradle bug. In fact extendsFrom isn't required for resolvableMetadataConfiguration business logic. It is enough to include all originalDependencies to freshly created detached configuration. ^KT-46417 Fixed
This commit is contained in:
committed by
teamcityserver
parent
e8bd8a938f
commit
5d9915e133
+1
-2
@@ -320,8 +320,7 @@ internal fun resolvableMetadataConfiguration(
|
||||
attributes.attribute(key, allSourceSetsConfiguration.attributes.getAttribute(key)!!)
|
||||
}
|
||||
allSourceSetsConfiguration.attributes.keySet().forEach { copyAttribute(it) }
|
||||
allSourceSetsConfiguration.extendsFrom.forEach { extendsFrom(it) }
|
||||
dependencies.addAll(originalDependencies) // TODO: check if this line is redundant
|
||||
dependencies.addAll(originalDependencies)
|
||||
}
|
||||
modifiedConfiguration!!.dependencies.add(dependency)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user