[GRADLE-1227] OSGI updates MANIFEST.MF even if no change Created: 17/Nov/10 Updated: 04/Jan/13 Resolved: 24/Apr/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 1.1-rc-1 |
Type: | Bug | ||
Reporter: | Robert Fischer | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 2 |
Issue Links: |
|
Description |
The OSGI plugin updates the MANIFEST.MF with a new Bnd-LastModified even if there is no other change, resulting in the jar task always executing. This triggers downstream tasks to always execute, as well. plenary-indulgence:ashlar robert$ gradle :ashlar-lang:jar ; md5 ./lang/build/tmp/jar/MANIFEST.MF ; cat ./lang/build/tmp/jar/MANIFEST.MF ; gradle :ashlar-lang:jar ; md5 ./lang/build/tmp/jar/MANIFEST.MF ; cat ./lang/build/tmp/jar/MANIFEST.MF BUILD SUCCESSFUL Total time: 10.784 secs :ashlar-lang:compileJava UP-TO-DATE BUILD SUCCESSFUL Total time: 11.073 secs |
Comments |
Comment by Roman Timushev [ 18/Apr/11 ] |
Workaround is jar { manifest { instruction '-removeheaders', 'Bnd-LastModified' } } |