gradle-scalastyle-plugin icon indicating copy to clipboard operation
gradle-scalastyle-plugin copied to clipboard

Support gradle build cache

Open sinwe opened this issue 7 years ago • 5 comments

When a particular module doesn't have any modified source code, there is no need to run scalastyle on that module. Gradle already have build cache for this. Could this plugin leverage on that cache? It will greatly reduce our total build time.

sinwe avatar Mar 01 '18 02:03 sinwe

Is this not the same as issue #21?

jacobilsoe avatar Mar 01 '18 13:03 jacobilsoe

Perhaps. Not sure if #21 is related to gradle build cache

sinwe avatar Mar 02 '18 11:03 sinwe

No, not specifically. It is more related to running scalastyle incrementally.

jacobilsoe avatar Mar 02 '18 11:03 jacobilsoe

Then it is different issue

sinwe avatar Mar 02 '18 13:03 sinwe

Right, it's different. See this example output:

> Task :...:scalaStyle UP-TO-DATE
Build cache key for task ':...:scalaStyle' is 364ed5531f68bcb2bc56e4b1543c8547
Caching disabled for task ':...:scalaStyle': Caching has not been enabled for the task
Skipping task ':...:scalaStyle' as it is up-to-date.
:..:scalaStyle (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 0.001 secs.

dsilvasc avatar May 08 '18 18:05 dsilvasc