forked from kkiapay/android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.gradle
51 lines (47 loc) · 1.94 KB
/
deploy.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
publishing {
publications {
Production(MavenPublication) {
artifact("$buildDir/outputs/aar/lib-release.aar")
groupId 'co.opensi.kkiapay' // replace with your groupId
artifactId 'kkiapay' // replace with your artifactId
version VERSION_NAME
//The publication doesn't know about our dependencies, so we have to manually add them to the pom
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
//Iterate over the implementation dependencies (we don't want the test ones), adding a <dependency> node for each
configurations.implementation.allDependencies.each {
if (it.name != 'unspecified') {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
bintray {
// Get Bintray credential from environment variable
user = System.getenv('BINTRAY_USER') // Get bintray User
key = System.getenv('BINTRAY_API_KEY') // Get bintray Secret API Key
dryRun = false
override = false
publish = true
pkg {
repo = 'KKIAPAY-ANDROID-SDK' // Bintray repo name
name = 'android-sdk' // library module name
userOrg = 'kkiapay' // Bintray user name
licenses = ['MIT']
desc = 'Android SDK for kkiapay API'
websiteUrl = 'https://kkiapay.me'
vcsUrl = 'https://github.com/kkiapay/android-sdk' // repo url
version {
name = VERSION_NAME //Bintray logical version name
vcsTag = VERSION_NAME
}
}
publications = ['Production']
}