Gradle Build Cache: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


<font color=darkgray>A build cache preserves [[Gradle Incremental Builds#Task_Inputs_and_Outputs|task outputs]].</font>
<font color=darkgray>A build cache preserves [[Gradle Incremental Builds#Task_Inputs_and_Outputs|task outputs]].</font>
The location of the build cache for a certain build is reported at stdout if [[Gradle_Command_Line#-i.2C--info|-i]] command line argument is used:
<syntaxhighlight lang='text'>
Using local directory build cache for the root build (location = /Users/test/.gradle/caches/build-cache-1, removeUnusedEntriesAfter = 7 days).
</syntaxhighlight>
=Cacheable Task=
=Cacheable Task=

Revision as of 22:43, 21 October 2020

External

Internal

Overview

A build cache preserves task outputs.

The location of the build cache for a certain build is reported at stdout if -i command line argument is used:

Using local directory build cache for the root build (location = /Users/test/.gradle/caches/build-cache-1, removeUnusedEntriesAfter = 7 days).

Cacheable Task