This commit is contained in:
AriaLyy
2016-11-21 11:18:21 +08:00
parent 7ae67281d0
commit f2e62c8b72

View File

@ -3,7 +3,7 @@ version = PROJ_VERSION
project.archivesBaseName = PROJ_ARTIFACT_ID project.archivesBaseName = PROJ_ARTIFACT_ID
apply plugin: 'com.jfrog.bintray' apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.github.dcendents.android-maven'
//输入gradlew install 执行 //输入gradlew bintrayupload 执行
//############################## jar、sources、doc 打包 start ####################################### //############################## jar、sources、doc 打包 start #######################################
task sourcesJar(type: Jar) { task sourcesJar(type: Jar) {
@ -79,10 +79,9 @@ bintray {
key = hasProperty("bintrayKey") ? getProperty("bintrayKey") : getProperty("BINTRAY_KEY") key = hasProperty("bintrayKey") ? getProperty("bintrayKey") : getProperty("BINTRAY_KEY")
configurations = ['archives'] configurations = ['archives']
publications = ['mavenJava']
pkg { pkg {
repo = PROJ_REPE repo = PROJ_REPO
name = PROJ_NAME name = PROJ_NAME
desc = PROJ_DESCRIPTION desc = PROJ_DESCRIPTION
websiteUrl = PROJ_WEB_SITE_URL websiteUrl = PROJ_WEB_SITE_URL
@ -102,7 +101,7 @@ bintray {
} }
} }
//上传gradlew install //install
install { install {
repositories.mavenInstaller { repositories.mavenInstaller {
// This generates POM.xml with proper parameters // This generates POM.xml with proper parameters