version: 2
jobs:
  build:
    working_directory: ~/circulate
    docker:
      - image: openjdk:8u121-jdk-alpine
    steps:
      - checkout
      - restore_cache:
          key: kotlin-ratpack-{{ .Branch }}-{{ checksum "build.gradle.kts" {% raw %}}}
      - run: ./gradlew build --no-daemon
      - save_cache:
          key: kotlin-ratpack-{{ .Branch }}
          paths:
            - ~/.gradle/wrapper
            - ~/.gradle/caches
            - ~/.gradle/native



version: 2
jobs:
  build:
    working_directory: ~/circulate
    docker:
      - image: openjdk:8u121-jdk-alpine
    steps:
      - run:
          name: Install Git
          command: apk add --no-cache git
      - checkout
      - restore_cache:
          key: kotlin-ratpack-{{ .Branch }}-{{ checksum "build.gradle.kts" {% raw %}}}
      - run:
          name: Gradle Build
          command: ./gradlew build --no-daemon
      - save_cache:
          key: kotlin-ratpack-{{ .Branch }}
          paths:
            - ~/.gradle/wrapper
            - ~/.gradle/caches
            - ~/.gradle/native



Install Git in container and add name to Gradle build step
Install Git in container and add name to Gradle build step

https://circleci.com/gh/mkobit/kotlin-ratpack/3 for failed build
