version: 2
jobs:
  build:
    working_directory: ~/libx
    docker:
      - image: openjdk:8
    environment:
      LEIN_ROOT=nbd
    steps:
      - checkout
      - restore_cache:
          key: << checksum "project.clj" >>
      - run: bin/lein deps
      - save_cache:
          paths:
            - $HOME/.m2
            - $HOME/.lein
          key: << checksum "project.clj" >>
      - run: bin/lein do test libx.core-test, uberjar
      - store_artifacts:
          path: target/libx.jar
          destination: uberjar

version: 2
jobs:
  build:
    working_directory: ~/libx
    docker:
      - image: openjdk:8
    environment:
      LEIN_ROOT=nbd
    steps:
      - checkout
      - restore_cache:
          key: << checksum "project.clj" >>
      - run: lein deps
      - save_cache:
          paths:
            - $HOME/.m2
            - $HOME/.lein
          key: << checksum "project.clj" >>
      - run: lein do test libx.core-test, uberjar
      - store_artifacts:
          path: target/libx.jar
          destination: uberjar

Use circleci's version of lein
Use circleci's version of lein
