Commit 1806fdd3 authored by Lucas Legrand's avatar Lucas Legrand

Update README.md

parent fd6d5184
Introduction
Introduction
Until today, integrating liblinphone sdk into a third party application required compiling a sdk from the sources or importing sdk binary files from: http://www.linphone.org/technical-corner/liblinphone/downloads .
In order to ease integration of this sdk, we adapted a Gitlab repository as a Maven one.
......@@ -7,7 +7,9 @@ With Gradle and this Maven repository, we now offer the ability to either host o
How to produce and host Liblinphone SDK on our Maven repository
How to produce and host Liblinphone SDK on our Maven repository
To host Liblinphone SDK and allow future remote import, follow theses steps:
......@@ -29,7 +31,6 @@ git clone https://gitlab.linphone.org/BC/public/maven_repository.git
Set the liblinphone-sdk/build.gradle file as in the Maven repository.
It includes two parts:
......@@ -63,24 +64,20 @@ Options explanation:
as following: 'groupId:artifactId:version'
For other libraries or versions, just edit artifactId or version.
Keep the -RELEASE part.
Keep the -RELEASE part. Maven favors convention over configuration.
Check if linphone-android builds.
Then, in a terminal located at linphone-android's root, type:
gradle clean uploadArchives
Warning: If a not working version is produced, before building it again, clear the whole gradle cache ($HOME/.gradle/caches/), or gradle will produce the same.
Sending files to our remote repository
Sending files to our remote repositor
Go to your local maven_repository and in a terminal type:
git add org
git commit -m 'Your message'
git push
......@@ -89,16 +86,14 @@ git push
How to use hosted Liblinphone SDK as a remote dependency
How to use hosted Liblinphone SDK as a remote dependency
In another linphone-android project, edit linphone-android build.gradle as in the one located in maven_repository root.
In another linphone-android project, edit linphone-android build.gradle as in the one located in maven_repository root.
Set our Maven repository source:
allprojects {
repositories {
maven{
......@@ -106,10 +101,10 @@ allprojects {
}
}
}
Change our local project dependency to remote dependency:
Change our local project dependency to remote dependency:
dependencies {
// implementation project(':liblinphone-sdk')
......@@ -123,3 +118,13 @@ Use again the settings provided in the creation part in order to give the way to
'groupId:artifactId:version'
In case of another library need, provided it is hosted, just change artifactId and version in accordance to its declaration in the creation part.
Sources:
All of theses served me to understand the way to produce this repository:
http://downright-amazed.blogspot.com/2011/09/hosting-maven-repository-on-github-for.html
https://docs.gradle.org/current/userguide/maven_plugin.html
https://jeroenmols.com/blog/2016/02/05/wagongit/
http://kodbiro.com/use-github-pages-as-your-own-maven-repository/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment