I have a github repository and I want to make it as a gradle dependency so that anyone can add in his build gradle.
can anyone help me?Thanks in advance.
I have a github repository and I want to make it as a gradle dependency so that anyone can add in his build gradle.
can anyone help me?Thanks in advance.
You need to upload it to jcenter or Maven Central
you can read how to do so here
or the easiest way you can just use jitpack
as noted in the comments this question is a duplicate of https://stackoverflow.com/a/33053965/3998402
I personally thing that jitpack is a hack and shouldn't be used in the real world.
The simplest option is to sign up to bintray and use the bintray gradle plugin to deploy your artifacts there.
You can also deploy to maven central which can be more difficult than bintray. For instance maven central requires that you "own" the domain for your group id (many people use their github domain as their group id). Maven central also requires much more info including authors and other fields.
You can also host a maven repo on github which I've done myself here. This relies on the https://raw.github.com
URL structure to serve up the jars as binary.