How can I create an additional .properties file during a release build?


(Ralf Edmund Stranzenbach) #1

During release builds I want to create an additional .properties file containing information on the build DATE, build NUMBER and build RELEASE TARGET. This information is not part of my source set, currently it is generated by the ant build script.

As I now move from ant to gradle, I need to replace this additional task by it’s gradle companion.

The information required is available through environment variables.