[GRADLE-1889] up-to-date checks for checkstyle tasks Created: 03/Nov/11  Updated: 04/Jan/13  Resolved: 21/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Chris Jones Assignee: Unassigned
Resolution: Not A Bug Votes: 0


 Description   

The checkstyle* tasks defined by the code-quality plugin always run, regardless of whether any source files have changed. It would be nice to define inputs and outputs for those tasks so they can do an up-to-date check.



 Comments   
Comment by Adam Murdoch [ 03/Nov/11 ]

These tasks do have inputs and outputs defined. Could you run with gradle -i? This will tell you why it's decided to run the task.

Comment by Chris Jones [ 03/Nov/11 ]

You're right – I was encoding the date/time into the jar file's manifest of a required project. Since it changed the manifest each time gradle ran, it build a new jar file, which caused it to re-run checkstyle.

Comment by Adam Murdoch [ 19/Feb/12 ]

Can I close this issue, then?

Comment by Chris Jones [ 20/Feb/12 ]

Yes, please.

Generated at Wed Jun 30 12:07:06 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.