How to declare dependencies in a build.gradle on a remote generic repository in artifactory


(Cindy Zhang) #1

In build.gradle, can I specify a repository and dependencies on a generic (not maven type) repository inside the Artifactory?

We have several jar files uploaded to the Artifactory repository. Those jar files have no version numbers in the file names. So the repository is not in maven layout. I have the url to the repository. In my local project’s build.gradle, how can specify the generic repository and in dependencies section, how can I specify the dependencies? Is there any example that I can follow?

Thanks