I am wondering what the best practice would be for caching the dependencies of a multi module maven project.
Currently I am going to attempt to set it up so that my cache’s key is something along the lines of:
key: maven-v1-{{ .Branch }}-{{ checksum "pom.xml" }}-{{ checksum "module-1/pom.xml" }}-{{ checksum "module-2/pom.xml" }}
As you can see there are multiple poms in the project, so I need to resolve the checksum of each of them to determine whether or not any of the files were changed.
Is there a better method to doing this?
Thanks!