version: 2
jobs:
  build:
    docker:
      - image: circleci/openjdk:8-jdk

    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
            - gradle-{{ checksum "frontend/build.gradle" }}-{{ checksum "backend/build.gradle" }}
            - gradle-

      - run: gradle dependencies

      - save_cache:
          paths:
            - ~/.gradle
          key: - gradle-{{ checksum "frontend/build.gradle" }}-{{ checksum "backend/build.gradle" }}

      - run: ./gradlew clean build

version: 2
jobs:
  build:
    docker:
      - image: circleci/openjdk:8-jdk

    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
            - gradle-{{ checksum "frontend/build.gradle" }}-{{ checksum "backend/build.gradle" }}
            - gradle-

      - run: gradle dependencies

      - save_cache:
          paths:
            - ~/.gradle
          key: gradle-{{ checksum "frontend/build.gradle" }}-{{ checksum "backend/build.gradle" }}

      - run: ./gradlew clean build

Fix circle ci caching part 2
Fix circle ci caching part 2