Hosting Gradle Artifacts on GitHub

I know people use GitHub to deploy Maven artifacts (on a new branch), but since we are using Gradle, I would like to know if there is an easy way to handle these dependencies?

We have various small projects that are independent but are used by our main project and we want to manage these dependencies without including them locally.

Thank.

+3


source to share


2 answers


There is an unofficial gradle plugin called the Gradle Git Repo plugin that claims to do what you are looking for. Note, however, that I have not played with it myself to make sure it works.



+3


source


You can use JitPack to include GitHub projects as dependencies. The idea is that JitPack provides a Maven repository where each package comes from a GitHub project.

It doesn't require you to download files for it to be very easy to use. Instead, when you ask for a file, it builds it from source.



There are two requirements to get started:
1. You need to have a build file in your project (Gradle or Maven)
2. You create a GitHub release for your project to get a version

+2


source







All Articles