Scala: Where are Coursier files stored on macOS?

Scala FAQ: Where are Coursier files stored on macOS?

Solution: The files Coursier downloads are located under this directory on macOS:

~/Library/Caches/Coursier

More specifically, in early 2021 they’re located under this directory:

~/Library/Caches/Coursier/v1

In a related note, this is my current JAVA_HOME, via Coursier:

/Users/al/Library/Caches/Coursier/jvm/adopt@1.11.0-9/Contents/Home

After a while this can be important to know, because the subdirectories can get quite large. Mine is currently over 4GB in size, and I’d like to delete some of that.

See the Coursier docs for more information.