Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (36 sloc) 1.36 KB
apply plugin: "com.jfrog.artifactory"
apply plugin: 'maven-publish'
apply from: rootProject.file('dependencies.gradle')
if (project.rootProject.file('local.properties').exists()) {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
if(properties.getProperty("bintray.user")!=null){
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven-publish'
bintray {
println("starting bintray")
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
pkg {
repo = BINTRAY_REPO_NAME
name = POM_ARTIFACT_ID
desc = POM_DESCRIPTION
websiteUrl = POM_URL
issueTrackerUrl = POM_ISSUE_URL
vcsUrl = POM_SCM_URL
licenses = ["Apache-2.0"]
publish = true
publicDownloadNumbers = true
version {
desc = POM_DESCRIPTION
name = maven.version
}
}
publications = ['mavenJava']
}
}
}
task releaseOnBintray(type: GradleBuild) {
tasks = ['assemble', 'generatePomFileForMavenJavaPublication', 'bintrayUpload']
}
You can’t perform that action at this time.