version: 2
jobs:
  build:
    working_directory: ~/cookbook
    docker:
      - image: openjdk:8u121
    steps:
      - checkout
      - restore_cache:
          key: v1-{{ checksum "build.gradle" }}
      - run: ./gradlew check
      - save_cache:
          paths:
            - ~/.m2
          key: v1-{{ checksum "build.gradle" }}


version: 2
jobs:
  build:
    working_directory: ~/cookbook
    docker:
      - image: openjdk:8u121
    steps:
      - checkout
      - restore_cache:
          key: v1-{{ checksum "build.gradle" }}
      - run: |
              chmod +x gradlew
              ./gradlew check
      - save_cache:
          paths:
            - ~/.m2
          key: v1-{{ checksum "build.gradle" }}


Add executable permission to gradlew
Add executable permission to gradlew
