forked from davideas/FlexibleAdapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jfrog-bintray-publish.gradle
94 lines (79 loc) · 2.52 KB
/
jfrog-bintray-publish.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
apply plugin: 'com.jfrog.bintray'
version = libraryVersion
task clean(type: Delete) {
delete rootProject.buildDir
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.getDestinationDir()
}
artifacts {
archives javadocJar
archives sourcesJar
}
def getRepositoryUsername() {
return getProperties().get('bintray.user')
}
def getRepositoryPassphrase() {
return getProperties().get('bintray.gpg.password')
}
def getApiKey() {
return getProperties().get("bintray.apikey")
}
bintray {
user = getRepositoryUsername()
key = getApiKey()
configurations = ['archives']
pkg {
repo = bintrayRepo
name = bintrayName
desc = libraryDescription
websiteUrl = siteUrl
licenses = allLicenses
vcsUrl = gitUrl
labels = ['android', 'recyclerview', 'list', 'adapter', 'selection', 'actionmode', 'undo', 'viewholder', 'ripple', 'search', 'filter', 'filtering', 'async', 'asynchrnous', 'item', 'item animator', 'itemanimator', 'animator' ,'animation', 'expand', 'expandable', 'collapse', 'collapsible', 'section', 'sticky', 'header', 'category', 'drag', 'draggable', 'swipe', 'swipeable', 'leave behind', 'fastscroll', 'fastscroller', 'endless scroll', 'load more']
publish = true
publicDownloadNumbers = true
//noinspection GroovyAssignabilityCheck
version {
name = libraryVersion
desc = libraryDescription
vcsTag = libraryVersion
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = getRepositoryPassphrase()
//Optional. The passphrase for GPG signing'
}
}
}
}
apply plugin: 'com.jfrog.artifactory'
artifactory {
contextUrl = 'http://localhost:8081/artifactory'
publish {
repository {
// The Artifactory repository key to publish to
repoKey = 'libs-release-local'
username = getProperties().get('bintray.user')
password = getProperties().get('bintray.gpg.password')
}
//noinspection GroovyAssignabilityCheck
defaults {
// Tell the Artifactory Plugin which artifacts should be published to Artifactory.
//publications('aar')
publishArtifacts = true
// Properties to be attached to the published artifacts.
//properties = ['qa.level': 'basic', 'dev.team': 'core']
// Publish generated POM files to Artifactory (true by default)
publishPom = true
}
}
}