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