forked from owenlongbo/McImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bintray.gradle
72 lines (62 loc) · 1.8 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
70
71
72
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
def siteUrl = 'https://github.com/smallSohoSolo/McImage'
def gitUrl = 'https://github.com/smallSohoSolo/McImage.git'
group = "com.smallsoho.mobcase"
version = "1.5.0"
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
install {
repositories.mavenInstaller {
pom {
project {
packaging 'jar'
name 'McImage'
url siteUrl
licenses {
license {
name 'Apache-2.0'
url 'https://opensource.org/licenses/Apache-2.0'
}
}
developers {
developer {
id properties.getProperty("JCENTER_ID")
name properties.getProperty("JCENTER_NAME")
email properties.getProperty("JCENTER_EMAIL")
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.java.srcDirs
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
bintray {
user = properties.getProperty("bintrayUser")
key = properties.getProperty("bintrayApikey")
configurations = ['archives']
pkg {
repo = "maven"
name = "McImage"
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}