I am building a Web app using the War plugin.
I would like to run the War task only if:
processResources task did work OR compileJava tasks did work OR contents inside directory webAppDirName changed
The problem I am facing here is that I’m creating a manifest file based on a dynamic value (to have a dynamic implementation version).
When I do that the temporary manifest file (created by Gradle) always changes and, as a result, the war task is always executed.
I would like to intercept the process just before the manifest file is generated in order to decide if I need a manifest file.
That way, if nothing else changed, I don’t need to generate a new implementation version and I don’t need to regenerate my War file.
Thanks for any help