This question already has an answer here:
- Gradle alternate to mvn install 3 answers
- Gradle: Make a 3rd party jar available to local gradle repository 6 answers
I used to work only with maven, and when project requires some jar which is not available in any repository, I was able to install it with
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
It was quite easy.
Now I struggle with gradle, my project depends on a jar which no longer exists in any repository. I have the jar file on my disk. Changing the jar version in project dependencies does not apply to my problem.
Is there any way to install jar file into the gradle cache from command line without changing any project dependencies?