I have a Gitlab server for Version Control System. I have developed an android library and want to share the android library in a gradle way i.e. compile "com.mycompanyname.libraryname:version.
I need a guidance on how to set up the repository on my server and how to share the library for gradle building.
I am trying to achieve a gradle mechanism using below given setup:
buildscript {
repositories {
jcenter()
maven { url 'https://any_url_/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.+'
classpath 'io.anything:gradle:1.+'
}
}
apply plugin: 'com.android.application'
repositories {
jcenter()
maven { url 'https://any_url/public' }
}