This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.gradle
78 lines (70 loc) · 2.2 KB
/
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
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
def group = project.group ?: rootProject.group
def version = project.version ?: rootProject.version
def siteUrl = "https://github.com/tuuzed/ListAdapter"
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
configurations = ['archives'] //When uploading configuration files
pkg {
repo = 'maven'
name = "$group:${project.name}"
desc = 'Android RecyclerView Adapter'
websiteUrl = siteUrl
issueTrackerUrl = "$siteUrl/issues"
vcsUrl = "${siteUrl}.git"
licenses = ['Apache-2.0']
labels = ['aar', 'android', 'adapter', "recyclerview", "loadmore", "pageable", "preference", "kotlin"]
publicDownloadNumbers = true
dryRun = false
override = true
}
}
install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
name 'Android RecyclerView Adapter'
url siteUrl
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'TuuZed'
name 'TuuZed'
email '[email protected]'
}
}
scm {
connection "${siteUrl}.git"
developerConnection "${siteUrl}.git"
url siteUrl
}
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
//task javadoc(type: Javadoc) {
// options.encoding = "UTF-8"
// source = android.sourceSets.main.java.srcDirs
// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
//}
//
//task javadocJar(type: Jar, dependsOn: javadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
//}
artifacts {
// archives javadocJar
archives sourcesJar
}