JARs fail to rebuild when project attributes are modified

When I modify the ‘Main-Class’ in jar.manifest.attributes in build.gradle, or the project name in settings.gradle, I expect the next gradle build or gradle shadowJar to update the respective JARs with the new attribute values.

Instead, the JARs are left as-is, and I am forced to carefully gradle clean and try building the JARs again.


  • Gradle 2.7
  • Homebrew 0.9.5
  • JDK 1.8
  • Mac OS X Yosemite 10.10.5

Thanks. This is the same issue as Jar task is UP_TO_DATE altough manifest attribute was changed, which is fixed in master and will be delivered with 2.8 (due in a couple of weeks).

I’m not so sure this has been fixed in master. As far as I know it hasn’t been fixed yet.

Yep, sorry. I just saw that it was resolved in 2.8-rc-1, didn’t see that it was still marked unresolved.