2

I am using Coursier in ammonite to download jar from a private repo. However for reason of integration with Intellij, I would like to change the location that coursier uses to cache the artificat. I would like to point to my local ivy. Is there a way to do that ?

MaatDeamon
  • 9,532
  • 9
  • 60
  • 127

1 Answers1

0

Unless Ammonite explicitly sets the cache location via the Coursier API you should be able to set it using the COURSIER_CACHE environment variable. See the respective documentation of the Coursier cache for more details.

michid
  • 10,536
  • 3
  • 32
  • 59
  • Thanks. I am wondering however If i am getting right. Is the coursier cache compatible with an ivy cache ? Will coursier detect that it is an ivy folder and cache accordingly vs a m2 folder for example ? – MaatDeamon May 02 '19 at 07:53
  • I don't think those caches are compatible but wouldn't know for sure. – michid May 02 '19 at 07:54
  • I think I need to better understand why in the case of ammonite, IntelliJ can only resolve the declared dependency but not the transitive one. It is rather strange ... is it a cache format issue, is there something particular about sbt that IntelliJ can read ? Or is it at the cache description level ... – MaatDeamon May 02 '19 at 07:56