Cache configuration that is in the Gradle (Java) sample YAML is incorrect

On Projects > Add Projects > Operating System: Linux > Platform: 2.0 > Language: Gradle (Java);

This page shows the sample yaml file of Gradle for bootstrap, I think maybe this yaml file has a mistake about caching.
Now this yaml contains following configuration;

      - save_cache:
          paths:
            - ~/.m2
          key: v1-dependencies-{{ checksum "build.gradle" }}

In my thinking, paths should be ~/.gradle instead of ~/.m2. Because gradle doesn’t cache contents into ~/.m2.

2 Likes

Thanks @moznion! This should be fixed now :slight_smile:

1 Like