-
Notifications
You must be signed in to change notification settings - Fork 454
/
release-bintray.gradle
60 lines (51 loc) · 1.63 KB
/
release-bintray.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
52
53
54
55
56
57
58
59
60
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
def upload = [
user : 'yarolegovich',
artifactId : 'sliding-root-nav',
userOrg : 'yarolegovich',
repository : 'maven',
groupId : 'com.yarolegovich',
uploadName : 'SlidingRootNav',
description: 'DrawerLayout-like ViewGroup, where a "drawer" is hidden under the content view, which can be shifted to make the drawer visible.',
version : '1.1.1',
licences : ['Apache-2.0']
]
task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
from android.sourceSets.main.java.srcDirs
}
version upload.version
afterEvaluate {
publishing {
publications {
LibRelease(MavenPublication) {
from components.release
artifact androidSourcesJar
artifactId upload.artifactId
groupId upload.groupId
version upload.version
}
}
}
Properties localProps = new Properties()
localProps.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
user = upload.user
key = localProps.getProperty('bintray.api_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
}
}
}
}