5

Can anyone tell me how to install an artifact/project into the local gradle filestore?

gradle install

installs it to the local maven repository but I need to have it in

~/.gradle/caches/artifacts-15/filestore
Stephen Ostermiller
  • 21,408
  • 12
  • 81
  • 104
myborobudur
  • 4,186
  • 6
  • 37
  • 61

2 Answers2

5

It's a pure cache, and you can't install into it (by design). If you could, reproducibility would suffer (build works on one machine but not on another).

Peter Niederwieser
  • 116,995
  • 20
  • 311
  • 250
2

If you install it to your local maven repository and refer to the repository in you gradle build file, you will have solved your problem.

See

Is there a way to install jar local gradle repository, as it in mave (maven install:install-file

EDIT: You don't even have to install the jar into your maven repo:

https://stackoverflow.com/a/13531958/260122

Community
  • 1
  • 1
clacke
  • 7,268
  • 5
  • 44
  • 48