Skip to content

Instantly share code, notes, and snippets.

@davegurnell
Last active April 5, 2020 01:18
Show Gist options
  • Save davegurnell/4a5fcca48e08e080ac613480947830f0 to your computer and use it in GitHub Desktop.
Save davegurnell/4a5fcca48e08e080ac613480947830f0 to your computer and use it in GitHub Desktop.
Minimal CircleCI 2.0 Scala build configuration with caching of Ivy/Maven dependencies
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk
steps:
- checkout
- restore_cache:
key: scala-library-dependencies-{{ checksum "build.sbt" }}
- run: sbt test:compile
- save_cache:
paths: [ "~/.m2", "~/.ivy2", "~/.cache/coursier" ]
key: scala-library-dependencies-{{ checksum "build.sbt" }}
- run: sbt test
@ponkotuy
Copy link

ponkotuy commented Apr 23, 2019

~/.cache/coursier -> ~/.coursier/cache ?

@softdevca
Copy link

~/.cache/coursier is correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment