add head
This commit is contained in:
@ -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 #########################################
|
Reference in New Issue
Block a user