带阿里标识的版本
This commit is contained in:
@@ -102,27 +102,18 @@ ext.getIntlVersion = { version ->
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
mavenReleaseAar(MavenPublication) {
|
||||
from components.normalRelease
|
||||
groupId 'com.aliyun.ams'
|
||||
artifactId 'alicloud-android-httpdns'
|
||||
version "$project.android.defaultConfig.versionName"
|
||||
}
|
||||
mavenIntlReleaseAar(MavenPublication) {
|
||||
from components.intlRelease
|
||||
groupId 'com.aliyun.ams'
|
||||
artifactId 'alicloud-android-httpdns'
|
||||
version getIntlVersion(project.android.defaultConfig.versionName)
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
if (project.android.defaultConfig.versionName.endsWith("-local-SNAPSHOT")) {
|
||||
// only maven local
|
||||
} else if (project.android.defaultConfig.versionName.endsWith("-SNAPSHOT")) {
|
||||
|
||||
task copyDependencies {
|
||||
doLast {
|
||||
def config = configurations.findByName("normalReleaseRuntimeClasspath")
|
||||
if (config != null) {
|
||||
config.resolvedConfiguration.resolvedArtifacts.each { artifact ->
|
||||
def file = artifact.file
|
||||
if (file.name.contains("alicloud-android")) {
|
||||
copy {
|
||||
from file
|
||||
into 'build/outputs/dependencies'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user