使用Bintray多模块项目将{AAR文件上传到错误的路径

时间:2017-11-10 13:22:20

标签: android maven gradle bintray

我有一个多模块Android项目,我正在尝试将文件上传到Bintray以便通过jCenter进行分发。

group = 'co.chatsdk.chatsdk'
version = '4.0.0'

ext {
  bintrayRepo = 'chat-sdk-android'
  bintrayName = 'chat-core'
  bintrayUserOrg = 'chat-sdk'

  publishedGroupId = 'co.chatsdk.chatsdk'
  libraryName = 'ChatSDKCore'
  artifact = 'chat-core'

  libraryDescription = 'Chat SDK Core library for Android'

  siteUrl = 'https://chatsdk.co'
  gitUrl = 'https://github.com/chat-sdk/chat-sdk-android.git'

  libraryVersion = '4.0.0'

  developerId = 'bensmiley'
  developerName = 'Ben Smiley-Andrews'
  developerEmail = 'ben@chatsdk.co'

  licenseName = 'Chat SDK License'
  licenseUrl = 'https://chatsdk.co/chat-sdk-license/'
  allLicenses = ['GPL-3.0']
}

apply from: 'https://raw.githubusercontent.com/chat-
sdk/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/chat-
sdk/JCenter/master/bintrayv1.gradle'

这是我的构建脚本。问题是,当我运行bintrayUpload时,生成的上传内容如下所示:

chat-core/
    /4.0.0/
       chat-core-4.0.0.pom
       chat-core-4.0.0.pom.asc
    /maven-metadata.xml

chat_sdk_core/
    /4.0.0/
        chat_sdk_core-4.0.0-sources.jar
        chat_sdk_core-4.0.0-sources.jar.asc
        chat_sdk_core-4.0.0.aar
        chat_sdk_core-4.0.0.aar.asc

因此看起来Bintray插件假设源代码的名称应该被视为模块名称而不是指定的名称。

0 个答案:

没有答案