Skip to content

Commit

Permalink
Store/restore ~/.m2 after versioned build (since pom.xml changes) (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
dansanduleac authored and robert3005 committed Mar 26, 2018
1 parent 4c99e63 commit cf31e83
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@ jobs:
# compilation results from build-sbt
- save_cache:
key: v1-maven-build-with-version-{{ .Branch }}-{{ .Revision }}
paths:
- .
paths: .
- save_cache:
key: v1-maven-dependency-cache-versioned-{{ checksum "pom.xml" }}
paths: ~/.m2

deploy:
<<: *defaults
Expand All @@ -368,7 +370,7 @@ jobs:
- restore_cache:
key: v1-maven-build-with-version-{{ .Branch }}-{{ .Revision }}
- restore_cache:
key: maven-dependency-cache-{{ checksum "pom.xml" }}
key: v1-maven-dependency-cache-versioned-{{ checksum "pom.xml" }}
- restore_cache:
key: build-binaries-{{ checksum "build/mvn" }}-{{ checksum "build/sbt" }}

Expand Down

0 comments on commit cf31e83

Please sign in to comment.