-
Notifications
You must be signed in to change notification settings - Fork 0
Home
修改buildscript > dependencies > 增加classpath
classpath 'com.android.tools.build:gradle:1.5.0
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
在文件最下方增加如下code,并修改对应值
ext {
bintrayRepo = 'maven'
bintrayName = 'ZFastLib'
publishedGroupId = 'com.github.zhzephi'
libraryName = 'zfastlib'
artifact = 'zfastlib'
libraryDescription = 'A Fast library of Https on Android'
siteUrl = 'https://github.com/zhzephi/ZHttp'
gitUrl = 'https://github.com/zhzephi/ZHttp.git'
libraryVersion = '1.0.0'
developerId = 'zhzephi'
developerName = 'Zongfi.Zhao'
developerEmail = 'zzf_soft@163.com'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
apply from: 'https://raw.githubusercontent.com/zhzephi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/zhzephi/JCenter/master/bintrayv1.gradle'
在项目目录下有local.properties文件,打开看到如下
sdk.dir=D\:\\Android-sdk
bintray.user=[bintray.user]
bintray.apikey=[bintray.apikey]
bintray.gpg.password=[bintray.gpg.password]
上面内容为bintray的user、apikey写成自己的,gpg.password为自己的加密密钥,如果不写导致生成的文件不能同步
在Terminal中执行如下命令进行bintray上传环境的安装
gradlew install
在Terminal中执行如下命令进行bintray的上传
gradlew bintrayUpload