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
Gradle's local repository folder is: $USER_HOME/. gradle/caches/modules-2/files-2.1.
Local Build Cache. The local build cache uses a system directory to store tasks outputs. The default location is the Gradle user home directory that points to $USER_HOME/. gradle/caches.
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).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With