This message was deleted.
# community-support
s
This message was deleted.
e
most likely classloader issues resulting in
MyExtension
class loaded multiple times
v
Or the existing
myExt
extension has a different type.
But you should anyway not do such cross-project configuration.
j
i ended up solving it by making the root project find the files via fileTree + filter instead of actually adding the files to the list
i was just hoping to have it be more explicit with the inputs
(this was related to my other issue i posted about earlier)
v
If one project needs outputs from other projects you should neither configure that project from the other projects to have them, nor reference the files from those other projects in the one needing them. You should use proper cross-project publication instead: https://docs.gradle.org/current/userguide/cross_project_publications.html
☝️ 1
j
interesting. in my case, it is not any kind of jar or java artifact. I am just trying to aggregate some data generated by each subproject build. is there a recommended way to do this?
v
What kind of files it is doesn't matter. That applies to any files. That way is the recommended way. For example the
test-report-aggregation
plugin uses that technique to collect the test results from the other projects. And the
jacoco-report-aggregation
plugin uses that technique to collect the JaCoCo results and the sources from the other projects.
j
ok. ill take another look. thanks
👌 1