Show which version and maven repository is used for linphone-sdk
This commit is contained in:
parent
042c25ca45
commit
2e9c2b7160
1 changed files with 19 additions and 0 deletions
|
@ -41,6 +41,22 @@ task getGitVersion() {
|
||||||
project.version = gitVersion
|
project.version = gitVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
customImpl.extendsFrom(implementation)
|
||||||
|
}
|
||||||
|
|
||||||
|
task linphoneSdkSource() {
|
||||||
|
doLast {
|
||||||
|
configurations.customImpl.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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
///// Exclude Files /////
|
///// Exclude Files /////
|
||||||
|
|
||||||
def excludeFiles = []
|
def excludeFiles = []
|
||||||
|
@ -63,14 +79,17 @@ excludePackage.add('**/LICENSE.txt')
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
name "local linphone-sdk maven repository"
|
||||||
url file(LinphoneSdkBuildDir + '/maven_repository/')
|
url file(LinphoneSdkBuildDir + '/maven_repository/')
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
|
name "linphone.org maven repository"
|
||||||
url "https://linphone.org/maven_repository"
|
url "https://linphone.org/maven_repository"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project.tasks['preBuild'].dependsOn 'getGitVersion'
|
project.tasks['preBuild'].dependsOn 'getGitVersion'
|
||||||
|
project.tasks['preBuild'].dependsOn 'linphoneSdkSource'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
|
Loading…
Reference in a new issue