This repository was archived by the owner on Mar 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathbintray.gradle
More file actions
51 lines (45 loc) · 1.58 KB
/
bintray.gradle
File metadata and controls
51 lines (45 loc) · 1.58 KB
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: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
publishing {
publications {
Publication(MavenPublication) {
artifact("$buildDir/outputs/aar/ktx-release.aar")
groupId 'co.infinum'
artifact sourcesJar
artifact javadocsJar
artifactId 'goldfinger-ktx'
version versions.goldfinger
pom.withXml {
def root = asNode()
def dependenciesNode = root.appendNode('dependencies')
configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
if (it.name == 'core') {
dependencyNode.appendNode('groupId', 'co.infinum')
dependencyNode.appendNode('artifactId', 'goldfinger')
dependencyNode.appendNode('version', versions.goldfinger)
} else {
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publish = false
publications = ['Publication']
pkg {
repo = 'android'
name = 'goldfinger-ktx'
userOrg = 'infinum'
publicDownloadNumbers = true
version {
name = versions.goldfinger
}
}
}