In Maven, artifacts are cached to ~/.m2/repository
as a standard maven repository. In Gradle, they are cached to ~/.gradle/caches/modules-2/
using some kind of binary index.
Is there an API for exploring the cache? Or is it entirely gradle-internal?