Hi. I have a jar task, where I add some MANIFEST attributes:
‘Build-Time-ISO-8601’: new Date().format(“yyyy-MM-dd’T’HH:mm:ssZ”)
The problem is with the timestamp - it causes the jar task to be executed every time. When I comment this attribute out, the jar task can be skipped. That’s a problem as this is an api module, and all others depend on it, and as the jar changes, all other modules are recompiled even though they don’t really need to. What can I do to also have the jar task skipped? I imagine gradle stores a snapshot of the attributes, and compares them with the new ones, and sees they are different (new Date()), and hence re-jars.