Hi! Need Gradle experts help. Consider such Gradle...
# random
p
Hi! Need Gradle experts help. Consider such Gradle project schema:
Copy code
module1:
 configuration1Module1
   attribute1
   dependency moudule2

 configuration2Module1
   attribute2
   dependency moudule2

 configuration3Module1 // Need this configuration provide both artifact1 and artifact2
   attribute3
   extendsFrom configuration1Module1
   extendsFrom configuration2Module1

module2:
 configuration1Module2
   attribute1
   artifact1

 configuration2Module2
   attribute2
   artifact2
I need to make configuration3Module1 configuration to get all artifacts including transitive from both configurations configuration1Module1 and configuration2Module1. But extendsFrom just 'inlined' all dependencies to configuration3Module1 and resolution happens from configuration3Module1 that have attribute3 and fail with resolving it. How to make this behave as when resolving configuration3Module1 first resolve all extendsFrom configurations by their attributes and all resulted dependencies gather in configuration3Module1?
r
There are no Gradle experts it seems 😛