Gradle Build Cache: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://docs.gradle.org/current/userguide/build_cache.html | |||
* https://guides.gradle.org/using-build-cache/ | |||
=Internal= | =Internal= | ||
* [[Gradle Concepts#Build_Cache|Gradle Concepts]] | * [[Gradle Concepts#Build_Cache|Gradle Concepts]] | ||
* [[Gradle Incremental Builds#Build_Cache|Gradle Incremental Builds]] | |||
=Overview= | =Overview= | ||
<font color=darkgray>A build cache preserves [[ | <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= | |||
=Task Output Caching= | |||
=Organizatorium= | |||
Gradle reports details about build cache location when executed with -i: | |||
<syntaxhighlight lang='text'> | |||
Using local directory build cache for the root build (location = /Users/ovidiufeodorov/.gradle/caches/build-cache-1, removeUnusedEntriesAfter = 7 days). | |||
</syntaxhighlight> |
Latest revision as of 21:08, 7 December 2020
External
- https://docs.gradle.org/current/userguide/build_cache.html
- https://guides.gradle.org/using-build-cache/
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
Task Output Caching
Organizatorium
Gradle reports details about build cache location when executed with -i:
Using local directory build cache for the root build (location = /Users/ovidiufeodorov/.gradle/caches/build-cache-1, removeUnusedEntriesAfter = 7 days).