title: Caching the Gradle wrapper in AWS CodeBuild
body: <p>This is what my current buildspec looks like:</p>
  
  <pre><code>phases:
    build:
      commands:
        - ./gradlew soakTest -s
  
  cache:
    paths:
      - '/root/.gradle/caches/**/*'
      - '.gradle/**/*'
  </code></pre>
  
  <p>But when this buildspec runs in CodeBuild, it prints messages that it is downloading gradle 4.7.
  It appears that other things are being cached correctly - I don't see log messages about downloading jar dependencies, for example.</p>
  
  <p>What should the buildspec cache specifications look like, in order to make sure the Gradle version that the Gradle wrapper downloads gets cached?</p>