Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add github libraries to gradle workflow?

I'm new to build tools and gradle. I'm currently developing for android. I've found a library on Github I would like to use in my app. What is the best way to create this dependency? The library doesn't have ant, maven or even gradle support.

Some options that came to my mind: 1) Fork the repo and add gradle support. 2) Clone the repo and add maven support then add it to the local maven repo.

What do the experts think how to handle such dependencies?

like image 305
No3x Avatar asked Apr 07 '26 22:04

No3x


1 Answers

If the library only publish sources, not binaries, you don't have any other option rather than build it yourself. Once you did that, you can host the binary in binary repository (like Artifactory) for sharing it with your colleagues, or even publish it on a distribution platform (like Bintray) for anyone who want to use it. For the later, you'll be able to pass the ownership (and the maintenance burden) to the original author in any moment.

like image 169
JBaruch Avatar answered Apr 10 '26 14:04

JBaruch