9021507995
* Deploy on tags * Bump version to 2.6.1
100 lines
2.4 KiB
Groovy
100 lines
2.4 KiB
Groovy
apply plugin: 'com.jfrog.bintray'
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
ext {
|
|
bintrayOrganisation = 'fotoapparat'
|
|
bintrayRepo = 'fotoapparat'
|
|
|
|
publishedGroupId = 'io.fotoapparat'
|
|
|
|
siteUrl = 'https://github.com/RedApparat/Fotoapparat'
|
|
gitUrl = 'https://github.com/RedApparat/Fotoapparat.git'
|
|
|
|
developerId = 'fotoapparat'
|
|
developerName = 'Fotoapparat'
|
|
developerEmail = 'dmitry.zaicew@gmail.com'
|
|
|
|
licenseName = 'The Apache Software License, Version 2.0'
|
|
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
allLicenses = ["Apache-2.0"]
|
|
}
|
|
|
|
group = publishedGroupId
|
|
version = libraryVersion
|
|
|
|
install {
|
|
repositories.mavenInstaller {
|
|
pom.project {
|
|
packaging 'aar'
|
|
groupId publishedGroupId
|
|
artifactId artifact
|
|
|
|
name libraryName
|
|
description libraryDescription
|
|
url siteUrl
|
|
|
|
licenses {
|
|
license {
|
|
name licenseName
|
|
url licenseUrl
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id developerId
|
|
name developerName
|
|
email developerEmail
|
|
}
|
|
}
|
|
scm {
|
|
connection gitUrl
|
|
developerConnection gitUrl
|
|
url siteUrl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from android.sourceSets.main.java.srcDirs
|
|
}
|
|
|
|
task javadoc(type: Javadoc) {
|
|
source = android.sourceSets.main.java.srcDirs
|
|
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
|
failOnError = false
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar
|
|
archives sourcesJar
|
|
}
|
|
|
|
bintray {
|
|
user = project.properties["bintray.user"] ?: System.getenv('BINTRAY_USER')
|
|
key = project.properties["bintray.apikey"] ?: System.getenv('BINTRAY_API_KEY')
|
|
|
|
configurations = ['archives']
|
|
pkg {
|
|
userOrg = bintrayOrganisation
|
|
repo = bintrayRepo
|
|
name = bintrayName
|
|
desc = libraryDescription
|
|
websiteUrl = siteUrl
|
|
vcsUrl = gitUrl
|
|
licenses = allLicenses
|
|
dryRun = false
|
|
publish = true
|
|
override = false
|
|
publicDownloadNumbers = true
|
|
version {
|
|
desc = libraryDescription
|
|
}
|
|
}
|
|
} |