所以我有这个我用不同的构建风格创建的 android 库。build.gradle 看起来像这样:
android {
compileSdkVersion 21
buildToolsVersion "21.0.1"
defaultConfig {
applicationId "com.example.mylibrary"
minSdkVersion 9
targetSdkVersion 20
versionName = "mylibrary"
versionCode = 102
}
productFlavors {
gcm {
}
amazon {
}
ua {
}
}
}
dependencies {
compile 'com.android.support:support-v4:21.+'
gcmCompile 'com.google.android.gms:play-services:6.1.11'
amazonCompile files('libs/amazon-device-messaging-1.0.1.jar')
uaCompile files('libs/urbanairship-lib-4.0.4.jar')
}
如何获得“artifactoryPublish”任务来发布所有 3 个构建 aars?