Is this document up-to-date? I am concerned with the resource filtering section. I am porting a maven project and would like to be able to do this. However, it says
Maven has a phase called process-resources that has the goal resources:resources
bound to it by default. This gives the build author an opportunity to
perform variable substitution on various files, such as web resources,
packaged properties files, etc.
The Java plugin for Gradle provides a processResources task to do the same thing. Here’s an example configuration:
expand(version: version, buildNumber: currentBuildNumber)
So the left hand side of each colon is the token name and
the right hand side is a project property. This variable substitution
will apply to all your resource files (the ones under src/main/resources usually).
I am not sure where “currentBuildNumber” is defined as a project property and I’d also like to filter in a “build timestamp”.
Is this still the current state of the art and if not, can you tell me what is?