Skip to content

Commit

Permalink
New bintray upload setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yarolegovich committed Jul 30, 2020
1 parent 5ebcd7d commit a923089
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 10 deletions.
25 changes: 15 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
}
}

Expand All @@ -23,20 +24,24 @@ task clean(type: Delete) {


ext {
userOrg = 'yarolegovich'
groupId = 'com.yarolegovich'
uploadName = 'LovelyDialog'
description = 'This library is a set of simple wrapper classes that are aimed to help you easily create fancy dialogs.'
publishVersion = '1.1.0'
licences = ['Apache-2.0']

compileSdkVersion = 29
buildToolsVersion = '29.0.2'
targetSdkVersion = 29

upload = [
user : 'yarolegovich',
userOrg : 'yarolegovich',
repository : 'maven',
groupId : 'com.yarolegovich',
uploadName : 'LovelyDialog',
description: 'This library is a set of simple wrapper classes that are aimed to help you easily create fancy dialogs.',
version : '1.1.1',
licences : ['Apache-2.0']
]

deps = [
androidxCore : 'androidx.core:core:1.3.1',
androidxCompat : 'androidx.appcompat:appcompat:1.1.0',
annotations : 'androidx.annotation:annotation:1.1.0'
androidxCore : 'androidx.core:core:1.3.1',
androidxCompat: 'androidx.appcompat:appcompat:1.1.0',
annotations : 'androidx.annotation:annotation:1.1.0'
]
}
33 changes: 33 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

android {
compileSdkVersion rootProject.compileSdkVersion
Expand All @@ -18,3 +20,34 @@ dependencies {
implementation deps.androidxCompat
}

afterEvaluate {
publishing {
publications {
LibRelease(MavenPublication) {
from components.release
artifactId 'lovely-dialog'
groupId upload.groupId
version upload.version
}
}
}

bintray {
user = upload.user
key = System.getenv('BINTRAY_KEY')
publications = ['LibRelease']
configurations = ['archives']
pkg {
name = upload.uploadName
repo = upload.repository
userOrg = upload.userOrg
licenses = upload.licences
publish = true
dryRun = false
version {
name = upload.version
desc = upload.description
}
}
}
}

0 comments on commit a923089

Please sign in to comment.