-
Notifications
You must be signed in to change notification settings - Fork 0
/
dist.gradle
105 lines (86 loc) · 3.88 KB
/
dist.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
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
repositories {
jcenter()
mavenLocal()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
artifactId project.ext.artifactId
pom.withXml {
def node = asNode()
node.appendNode('name', 'LoganSquareX')
node.appendNode('description', 'Screaming fast JSON parsing and serialization library for Android.')
node.appendNode('url', 'https://github.com/LoganSquareX/LoganSquareX')
def organizationNode = node.appendNode('organization')
organizationNode.appendNode('name', 'BLoganSquareX')
organizationNode.appendNode('url', 'https://github.com/LoganSquareX')
def scmNode = node.appendNode('scm')
scmNode.appendNode('connection', 'scm:git:https://github.com/LoganSquareX/LoganSquareX')
scmNode.appendNode('developerConnection', 'scm:git:https://github.com/LoganSquareX/LoganSquareX')
scmNode.appendNode('url', 'https://github.com/LoganSquareX/LoganSquareX')
def developersNode = node.appendNode('developers')
def ericNode = developersNode.appendNode('developer')
ericNode.appendNode('id', 'bunnyblue')
ericNode.appendNode('name', 'BunnyBlue')
def licensesNode = node.appendNode('licenses')
def licenseNode = licensesNode.appendNode('license')
licenseNode.appendNode('name', 'Apache 2.0')
licenseNode.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt')
}
}
}
}
bintray {
Properties properties = new Properties()
File propFile = "${System.properties['user.home']}${File.separator}.gradle${File.separator}bintray.properties" as File
if (propFile.exists())
{
properties.load(propFile.newDataInputStream())
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
}
publications = ['mavenJava']
dryRun = false
publish = false
pkg {
repo = 'LoganSquareX'
userOrg = 'logansquarex'
name = project.ext.artifactId
desc = 'Screaming fast JSON parsing and serialization library for Android.'
websiteUrl = 'https://github.com/LoganSquareX/LoganSquareX'
issueTrackerUrl = 'https://github.com/LoganSquareX/LoganSquareX/issues'
vcsUrl = 'https://github.com/LoganSquareX/LoganSquareX'
licenses = ['Apache-2.0']
labels = ['json', 'android', 'parser', 'serializer', 'jackson']
publicDownloadNumbers = true
version {
name = project.version
gpg {
sign = true
passphrase = project.hasProperty('bintray_gpg_passphrase') ? bintray_gpg_passphrase : ''
}
mavenCentralSync {
sync = false
user = project.hasProperty('maven_central_username') ? maven_central_username : ''
password = project.hasProperty('maven_central_password') ? maven_central_password : ''
close = '1'
}
}
}
}