This commit is contained in:
AriaLyy
2016-11-21 10:38:22 +08:00
parent 6b3acb8fdf
commit 7ae67281d0
45 changed files with 782 additions and 39 deletions

View File

@ -3,8 +3,9 @@ version = PROJ_VERSION
project.archivesBaseName = PROJ_ARTIFACT_ID
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
//输入gradlew bintrayupload 执行
//输入gradlew install 执行
//############################## jar、sources、doc 打包 start #######################################
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
@ -70,7 +71,9 @@ artifacts {
archives javadocJar
archives sourcesJar
}
//############################## jar、sources、doc 打包 end #######################################
//################################# jcenter 上传配置 start #########################################
bintray {
user = hasProperty("bintrayUser") ? getProperty("bintrayUser") : getProperty("BINTRAY_USER")
key = hasProperty("bintrayKey") ? getProperty("bintrayKey") : getProperty("BINTRAY_KEY")
@ -99,6 +102,7 @@ bintray {
}
}
//上传gradlew install
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
@ -135,4 +139,5 @@ install {
}
}
}
}
}
//################################# jcenter end #########################################