我有一个多模块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插件假设源代码的名称应该被视为模块名称而不是指定的名称。