I am writing a springboot application, which has dependencies of springboot. I want to keep one copy of these dependency into JFrog Artifactory server, so next time dependency will be fetched from JFrog Artifactory server then maven central.
Asked
Active
Viewed 1,200 times
1 Answers
1
If you are planning to use Gradle as your build tool you can start with the following resources:
- Introduction to dependency management with Gradle
- Declaring repositories
- Artifactory documentation - Working with Gradle
- Setting up JFrog Artifactory as a Gradle repository
In addition you can take a look at the JFrog GitHub for project examples. This repository contains multiple example project showing how to work with Gradle and Artifactory.
If you are planning to use Apache Maven as your build tool you can start with the following resources:
- Setting up a Maven repository with JFrog Artifactory
- Artifactory documentation - Maven Repository

Dror Bereznitsky
- 20,048
- 3
- 48
- 57
-
Thanks Dror for reply. It will store only our project jar not downloaded from maven central – Lalchand Mali Jun 27 '18 at 10:27
-
It is still preferred that you use some kind of a build tool like gradle or maven which will download/deploy the .jar to Artifactory. If you are currently using ant to build your project, you can use ivy in order to work with Artifactory – Dror Bereznitsky Jun 27 '18 at 11:20
-
I want to upload all artifact which is available in $GRADLE_HOME/caches/modules-2/files-2.1 to JFrog Artifactory. – Lalchand Mali Jun 28 '18 at 05:56
-
@LalchandMali you do not deploy artifacts directly from the Gradle cache to a repository. I really suggest that you will read more about how to work with Gradle and repositories. I added a couple of links to my answer and a reference to our project examples. Good luck! – Dror Bereznitsky Jun 28 '18 at 08:20