we have some gradle logic which builds docker images,
project b produces a base image for project a.
So use dependsOn gradle.includedBuild(....) to ensure the base image is built and available during the parent build when working in a composite build, the tag to use for the base image is then passed to a property of a custom task which builds parent image, this is currently hard coded.
I was just having a brainwave (or so i though) that if it could be picked up from the composite build somehow it would save the need to hardcode this, and as a result occasional change.