Due to the configuration cache changes in gradle 9...
# community-support
t
Due to the configuration cache changes in gradle 9, I need a way to use outputs from an included build as part of the configuration of the root build. Is that possible? Essentially, I need to evaluate the software model completely to get a list of all dependencies in a subproject, and then use that for configuring dependencies in the root project. Before, that worked (although based on the error message it's one of the cases that shouldn't have), but now it doesn't. And also, is there a way to use the root projects gradle.properites in an included build?
e
Sounds like youre doing things you really shouldn't so (personally) I wouldn't expect a proper answer. > I need to evaluate the software model completely to get a list of all dependencies in a subproject, and then use that for configuring dependencies in the root project. Without any more context this fires off a bunch of warnings to me
t
I just ended up using a ValueSource to fire up a 2nd gradle build during config time to generate that info, and then parsed it and gave it to the main build. I don't care about config time for this specific project. It's our offline installer builder. Essentially we need to grab a list of all dependencies for our generated project for our users, so we can cache everything for fully offline use. Software model is needed because we're still using the software model for c++. New c++ setup still doesn't work for us.
😮 1
👍🏾 1