I have a git repository with a code I wish to reuse in multiple projects. What I want to do is be able to add this to any project using my build.gradle file.
I apologise for the poor structure of the question but I have absolutely no knowledge on this subject and I'm not sure how to ask the question.
So for example in my build.gradle file I have existing dependencies:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v13:18.0.+'
compile project(':webservices')
compile 'com.crashlytics.android:crashlytics:1.+'
compile files('libs/dnsjava-2.1.6.jar')
compile files('libs/common-lang3.jar')
compile files('libs/ePOS-Print.jar')
}
So for example to be able to provide the url, like the crashlytics dependency above.
Could someone please let me know what steps to take in order to achieve this. Or if someone has a tutorial link I'd greatly appreciate it.
Thanks in advance.