forked from MegatronKing/StringFog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbintray_java.gradle
105 lines (87 loc) · 2.18 KB
/
bintray_java.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
95
96
97
98
99
100
101
102
103
104
105
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
group = GROUP
version = VERSION
project.archivesBaseName = ARTIFACTID
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
archives javadocJar
}
javadoc {
options{
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "http://docs.oracle.com/javase/7/docs/api"
title "$ARTIFACTID $VERSION"
}
}
install {
repositories.mavenInstaller {
pom.project {
name project.name
description POM_DESCRIPTION
url POM_URL
packaging POM_PACKAGING
groupId GROUP
artifactId ARTIFACTID
version VERSION
licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}
scm {
connection POM_SCM_CONNECTION
url POM_URL
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
email POM_DEVELOPER_EMAIL
}
}
}
}
}
bintray {
def pFile = file("${rootDir}//local.properties")
Properties p = new Properties()
pFile.withInputStream { stream->
p.load(stream)
}
user = p.getProperty('BINTRAY_USER')
key = p.getProperty('BINTRAY_KEY')
configurations = ['archives']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = project.name
licenses = ['Apache-2.0']
vcsUrl = POM_URL
websiteUrl = POM_URL
issueTrackerUrl = POM_URL
publicDownloadNumbers = true
version {
name = VERSION
desc = POM_DESCRIPTION
vcsTag = VERSION
gpg {
sign = true
}
}
}
}