jcenter 上传

This commit is contained in:
AriaLyy
2017-01-02 16:56:44 +08:00
parent cd55e370cb
commit 98db25f832
5 changed files with 19 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ version = PROJ_VERSION
project.archivesBaseName = PROJ_ARTIFACT_ID
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
//输入gradlew bintrayupload 执行
//输入gradlew bintray 执行
//############################## jar、sources、doc 打包 start #######################################
task sourcesJar(type: Jar) {
@@ -75,9 +75,10 @@ artifacts {
//################################# jcenter 上传配置 start #########################################
bintray {
user = hasProperty("bintrayUser") ? getProperty("bintrayUser") : getProperty("BINTRAY_USER")
key = hasProperty("bintrayKey") ? getProperty("bintrayKey") : getProperty("BINTRAY_KEY")
// user = hasProperty("bintrayUser") ? getProperty("bintrayUser") : getProperty("BINTRAY_USER")
// key = hasProperty("bintrayKey") ? getProperty("bintrayKey") : getProperty("BINTRAY_KEY")
user = BINTRAY_USER
key = BINTRAY_KEY
configurations = ['archives']
pkg {