Is there any supported mechanism for sharing a property between the root and buildSrc parts of a build?
My use case is that I have a code generator task that is packaged as a plugin in the buildSrc, the output of the root build is a package that will consume code generated by the code generator plugin. It would be nice to maintain and publish them together under the same version and different artifact IDs
e.g. the output published into a Maven repo would be something like:
For the two artifacts above, I would like to define the version ‘1.2.3’ in exactly one place and have the artifacts from the buidSrc and root be at the same version.
Is there a simple way to do this without the use of System properties?