title: After deleting Gradle's build cache and building, some tasks are still marked as FROM-CACHE
body: <p>I start off by deleting Gradle's build cache</p>
  
  <p><code>$ rm -rf $GRADLE_HOME/caches/build-cache-*</code></p>
  
  <p>I manually confirm this directory is gone. I also clean to ensure nothing from incremental build will interfere</p>
  
  <p><code>$ ./gradlew clean</code></p>
  
  <p>I then run a build w/ build-cache enabled:</p>
  
  <pre><code>$ ./gradlew --build-cache --scan app:assembleDebug
  ...
  238 actionable tasks: 172 executed, 49 from cache, 17 up-to-date
  </code></pre>
  
  <p>Checking the generated report I see that some tasks are still marked as FROM-CACHE. How is this happening?</p>
  
  <p><a href="https://i.stack.imgur.com/BFxHI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BFxHI.png" alt="enter image description here"></a></p>
  
  <p>FWIW I'm using Gradle 5.6.3. I also don't use a remote build cache.</p>
  
  <hr>
  
  <p>UPDATE: after clearing build cache, here's what's left in the cache dir:</p>
  
  <pre><code>$ pwd
  /Users/jasonatwood/.gradle/caches
  
  $ ls -al
  total 24
  drwx------  11 jasonatwood  staff   352 Dec 13 18:11 .
  drwxr-xr-x   9 jasonatwood  staff   288 Oct 15 17:24 ..
  drwxr-xr-x  14 jasonatwood  staff   448 Oct 29 16:07 5.4.1
  drwxr-xr-x  15 jasonatwood  staff   480 Nov 26 18:25 5.6.3
  drwxr-xr-x  35 jasonatwood  staff  1120 Dec 11 14:14 jars-3
  drwxr-xr-x   5 jasonatwood  staff   160 Oct 15 17:44 journal-1
  drwxr-xr-x   7 jasonatwood  staff   224 Oct 15 17:50 modules-2
  drwxr-xr-x   5 jasonatwood  staff   160 Oct 15 17:50 transforms-2
  -rw-r--r--   1 jasonatwood  staff    39 Oct 15 17:27 transforms-2.lock
  -rw-------   1 jasonatwood  staff    28 Oct 22 16:34 user-id.txt
  -rw-r--r--   1 jasonatwood  staff    17 Dec 13 18:00 user-id.txt.lock
  </code></pre>
  
  <p>If I understand correctly, I don't need to delete any of these.</p>