Added Bintray configuration
This commit is contained in:
+8
-1
@@ -1,5 +1,9 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
ext {
|
||||
artifactVersion = '2.3.1'
|
||||
}
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
versions = [
|
||||
@@ -33,9 +37,12 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||
classpath 'com.android.tools.build:gradle:3.1.4'
|
||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
|
||||
|
||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
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"]
|
||||
key = project.properties["bintray.apikey"]
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,4 +24,16 @@ dependencies {
|
||||
|
||||
testImplementation "io.reactivex:rxjava:${versions.rx.rxJava1}"
|
||||
testImplementation "junit:junit:${versions.test.junit}"
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
bintrayName = 'fotoapparat.adapter-rxjava'
|
||||
|
||||
libraryName = 'Fotoapparat Adapters - RxJava'
|
||||
artifact = 'fotoapparat.adapter-rxjava'
|
||||
libraryVersion = '2.3.1'
|
||||
|
||||
libraryDescription = 'RxJava1 adapter for Fotoapparat.'
|
||||
}
|
||||
|
||||
apply from: '../../deploy.gradle'
|
||||
@@ -24,4 +24,16 @@ dependencies {
|
||||
|
||||
testImplementation "io.reactivex.rxjava2:rxjava:${versions.rx.rxJava2}"
|
||||
testImplementation "junit:junit:${versions.test.junit}"
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
bintrayName = 'fotoapparat.adapter-rxjava2'
|
||||
|
||||
libraryName = 'Fotoapparat Adapters - RxJava2'
|
||||
artifact = 'fotoapparat.adapter-rxjava2'
|
||||
libraryVersion = '2.3.1'
|
||||
|
||||
libraryDescription = 'RxJava2 adapter for Fotoapparat.'
|
||||
}
|
||||
|
||||
apply from: '../../deploy.gradle'
|
||||
@@ -29,12 +29,24 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.android.support:support-annotations:${versions.android.support}"
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
|
||||
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21'
|
||||
implementation "com.android.support:support-annotations:${versions.android.support}"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21'
|
||||
|
||||
testImplementation "junit:junit:${versions.test.junit}"
|
||||
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.test.mockito}"
|
||||
testImplementation "commons-io:commons-io:${versions.util.commons}"
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
bintrayName = 'fotoapparat'
|
||||
|
||||
libraryName = 'Fotoapparat'
|
||||
artifact = 'fotoapparat'
|
||||
libraryVersion = '2.3.1'
|
||||
|
||||
libraryDescription = 'Camera library for Android with a more user-friendly API.'
|
||||
}
|
||||
|
||||
apply from: '../deploy.gradle'
|
||||
Reference in New Issue
Block a user