Reputation: 1060
I made an android library that I'd like upload to make it available for all the android devs via build.gradle. I've followed these steps and these steps, but this is the first time that I'm doing this and can't achieve it. I'd appreciate advices or instructions from some of you that already made it.
But I'm not even sure what do I have to do. I wanna make my library available for all the android developers by writing something like this in their build.gradle:
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
Upvotes: 3
Views: 1179
Reputation: 1060
I tried with the links the other answers suggested but I think the steps were not clear enough... so I couldn't make it work (I think I might be guilty as well for not understanding well enough).
Anyways, a couple months later I found this super cool post that explains in detail and clear all the steps you have to follow in order to upload your open source library to maven and make it available via gradle. Thanks to the guys that answered before, hope this helps someone else like it helped me.
Upvotes: 3
Reputation: 2411
Follow these instructions : http://gmariotti.blogspot.in/2013/09/publish-aar-file-to-maven-central-with.html , https://github.com/chrisbanes/gradle-mvn-push
Upvotes: 0
Reputation: 4774
Gradle Fetch the Dependency libraries from Maven Repository you have to upload the package to the Maven Repo or just put the library in the /libs folder and put this under dependencies block:
compile fileTree(include: ['*.jar'], dir: 'libs')
You can see a guide to upload a library to the maven repo Here
Upvotes: 0