-
Notifications
You must be signed in to change notification settings - Fork 9
/
bintray.gradle
69 lines (60 loc) · 1.78 KB
/
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
61
62
63
64
65
66
67
68
69
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += configurations.compile
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
options {
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "http://docs.oracle.com/javase/7/docs/api"
title project.desc
}
// Turn off doclint because JDK 8 is too strict
// http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
options.addStringOption('Xdoclint:none', '-quiet')
// TODO #43: Figure out how to build with AAR dependencies
// Gradle: error: package android.support.v4.util does not exist
// Gradle: error: cannot find symbol class SimpleArrayMap
failOnError false
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
bintray {
user = project.BINTRAY_USER
key = project.BINTRAY_KEY
configurations = ['archives']
publish = false
pkg {
repo = 'maven'
name = project.ext.name
desc = project.desc
websiteUrl = project.websiteUrl
issueTrackerUrl = project.issueTrackerUrl
vcsUrl = project.vcsUrl
licenses = ['Apache-2.0']
publicDownloadNumbers = false
}
}
install.repositories.mavenInstaller.pom.project {
packaging 'aar'
developers {
developer {
id "sdchang5566"
name "Sheng-Dean Chang"
email "[email protected]"
}
}
}