mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-20 04:58:07 +00:00
Added uplaod aar to maven
This commit is contained in:
parent
28fb04bc62
commit
680a0ff701
2 changed files with 24 additions and 0 deletions
|
|
@ -18,18 +18,22 @@ allprojects {
|
|||
mavenCentral()
|
||||
mavenLocal()
|
||||
google()
|
||||
maven { url "https://raw.github.com/synergian/wagon-git/releases"}
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
javadocDeps
|
||||
deployerJars
|
||||
}
|
||||
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
dependencies {
|
||||
compile group: 'org.apache.commons', name: 'commons-compress', version: '+'
|
||||
javadocDeps group: 'org.apache.commons', name: 'commons-compress', version: '+'
|
||||
deployerJars "ar.com.synergian:wagon-git:0.2.5"
|
||||
}
|
||||
|
||||
def submoduleDir = ['submodules/mediastreamer2/java/src',
|
||||
|
|
@ -149,3 +153,20 @@ task copyAssets(type: Sync) {
|
|||
|
||||
}
|
||||
project.tasks['preBuild'].dependsOn 'copyAssets'
|
||||
|
||||
uploadArchives {
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
configuration = configurations.deployerJars
|
||||
repository(url: 'git:master://git@gitlab.linphone.org:BC/public/maven_repository.git'){
|
||||
authentication(privateKey: '/home/jenkins/maven.key')
|
||||
}
|
||||
pom.project {
|
||||
groupId 'org.linphone'
|
||||
artifactId 'liblinphone-sdk'
|
||||
version '3.4.1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -402,6 +402,9 @@ liblinphone-android-sdk: java-clean build copy-libs $(TOPDIR)/res/raw/rootca.pem
|
|||
\t@mv $(TOPDIR)/bin/outputs/aar/*.aar $(TOPDIR)/bin/outputs/aar/liblinphone-sdk.aar
|
||||
\t./gradlew -b libLinphoneAndroidSdk.gradle sdkZip
|
||||
|
||||
upload-aar-to-maven:
|
||||
\t./gradlew -b libLinphoneAndroidSdk.gradle uploadArchives
|
||||
|
||||
debug-sdk: java-clean build copy-libs $(TOPDIR)/res/raw/rootca.pem
|
||||
\t./gradlew -b libLinphoneAndroidSdk.gradle assembleDebug
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue