Log linphone-sdk version and source
This commit is contained in:
parent
867183fd28
commit
bb704a25b9
1 changed files with 16 additions and 1 deletions
|
@ -47,6 +47,19 @@ task getGitVersion() {
|
|||
project.version = gitVersion
|
||||
}
|
||||
|
||||
task linphoneSdkSource() {
|
||||
doLast {
|
||||
configurations.implementation.canBeResolved = true
|
||||
configurations.implementation.getIncoming().each {
|
||||
it.getResolutionResult().allComponents.each {
|
||||
if (it.id.getDisplayName().contains("linphone-sdk-android")) {
|
||||
println 'Linphone SDK used is ' + it.moduleVersion.version + ' from ' + it.properties["repositoryName"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.tasks['preBuild'].dependsOn 'getGitVersion'
|
||||
project.tasks['preBuild'].dependsOn 'linphoneSdkSource'
|
||||
|
||||
|
@ -152,10 +165,12 @@ android {
|
|||
|
||||
repositories {
|
||||
maven {
|
||||
name "local linphone-sdk maven repository"
|
||||
url file(LinphoneSdkBuildDir + '/maven_repository/')
|
||||
}
|
||||
|
||||
maven {
|
||||
name "linphone.org maven repository"
|
||||
url "https://linphone.org/maven_repository"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue