Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add something to gradle for other users?

Tags:

android

gradle

How to add your own project to the gradle so other users can use it as a dependency? E.g.

dependencies {
    compile 'com.myDomain.myProject-v1.0'
}
like image 254
shurrok Avatar asked Dec 31 '25 18:12

shurrok


2 Answers

  1. Create a library project. See this.

  2. Push it to github. (Optional).

  3. Publish it to bintray. See this tutorial.

like image 119
iceman Avatar answered Jan 03 '26 09:01

iceman


Assuming that Some Other Folder is a gradle project you could add something like the following to your settings.gradle file:

include ':module1'
project(':module1').projectDir = new File(settingsDir, '../Project B/Module 1')

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!