This message was deleted.
# community-support
s
This message was deleted.
v
If you put the dependencies into one configuration, there will be conflict resolution as you observed. You probably need to use separate configurations.
l
thanks for a quick reply! I will try to automate your suggestion and get back with the results!
👌 1
I've created a set of configurations, one for each sub-project, and put them in a map, where each key was a configuration name, and the value was the name of the corresponding project. I then iterated over this map twice, once in the dependencies section:
Copy code
dependencies {
    rpmConfigurations.forEach { (rpmConfiguration, subproject) ->
        rpmConfiguration(project(path = subproject, configuration = "dependencyJars"))
    }
}
and once in my file copy task:
Copy code
val syncFiles by tasks.registering(Copy::class) {
    rpmConfigurations.keys.forEach { rpmConfiguration ->
        from(configurations[rpmConfiguration])
    }
    // ...
  }
This worked fine! Thanks again! 🙂
👌 1
v
One more recommendation, don't use
Copy
tasks or
copy { ... }
closures unless you really want to copy into an existing directory, just overwriting some files. In most situations you want
Sync
or
sync { ... }
to make sure there are no old files hanging around.
👍 1
l
got it, thanks again!
👌 1