-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbintray.gradle
More file actions
89 lines (77 loc) · 2.57 KB
/
bintray.gradle
File metadata and controls
89 lines (77 loc) · 2.57 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
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
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
afterEvaluate { projects ->
install() {
repositories.mavenInstaller {
pom {
project {
packaging POM_PACKAGING
groupId POM_GROUP_ID
artifactId POM_ARTIFACT_ID
version = POM_VERSION
name POM_NAME
description POM_DESCRIPTION
url POM_SITE_URL
println String.format('\t\tcompile \'%1$s:%2$s:%3$s\'', POM_GROUP_ID, POM_ARTIFACT_ID, POM_VERSION)
licenses {
license {
name POM_LICENSE_NAME
url POM_LICENSE_URL
distribution POM_LICENSE_DISTRIBUTION
}
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
email POM_DEVELOPER_EMAIL
}
}
scm {
connection POM_GIT_URL
developerConnection POM_GIT_URL
url POM_SITE_URL
}
}
}
}
}
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))
failOnError false
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
bintray {
user = BINTRAY_USER
key = BINTRAY_APIKEY
configurations = ['archives']
pkg {
repo = BINTRAY_PKG_REPO
name = POM_NAME
desc = POM_DESCRIPTION
if (hasProperty('BINTRAY_PKG_ISSUE_TRACKER_URL'))
issueTrackerUrl = BINTRAY_PKG_ISSUE_TRACKER_URL
userOrg = BINTRAY_PKG_USER_ORG
websiteUrl = POM_SITE_URL
vcsUrl = POM_GIT_URL
licenses = [POM_LICENSE_ALIAS]
publish = BINTRAY_PKG_PUBLISH
version {
name = POM_VERSION
vcsTag = POM_VERSION
}
}
}
}