We are porting another legacy system to gradle. This system is sufficiently complex that it seems like it would be easier to have the gradle build script simply execute a shell script to build the main archive, which is an rpm file. This works well enough.
But then we want to bolt on some gradle extensions for further processing.
The version number which is encoded in the RPM comes from another file. I would like to write some groovy (or java) code to read this file and pull the version number out of it and set project.version equal to this value.
Can this even be done, and when, in the evaluate/configure/run cycle should it be done?