Closed haimadrian closed 5 years ago
hi @haimadrian
any reason you want to customize those fields when patching the version? as the patcher was intended to update the version from gradle's project property but for product and company names they could be hard coded in the source directly
Hi and thanks for the reply. Let's take for example AssemblyCopyright, where I want to update the year based on current year. The other fields are required for the assemblies to be updated based on the product that ship them. I have 4 different products shipping the assemblies as a driver, and I want the assembly title, trademark, etc. to get updated according to the product's name.
I could use TokenReplacer to do that, but just thought it could be nice using AssemblyInfoVersionPatcher with a map containing all of the fields I need
thanks for your clarification, imo adding additional input parameter to AssemblyInfoVersionPatcher is better than a map
Hi,
Currently, AssemblyInfoVersionPatcher supports customizing those fields:
There are additional fields I would like to customize as part of product build:
Is it possible to modify or extend current AssemblyInfoVersionPatcher such that it will get a map as @ Input, where I put all desired fields? Declaring additional input members is fine as well
Thank you very much!