Android Gradle:如何将所有构建变体发布到artifactory

时间:2014-10-23 01:16:28

标签: android android-gradle artifactory aar android-productflavors

所以我有这个我用不同的构建风格创建的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?

0 个答案:

没有答案