|
|
@ -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 |
|
|
|