-
Notifications
You must be signed in to change notification settings - Fork 306
/
build.gradle
executable file
·119 lines (100 loc) · 4 KB
/
build.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
}
}
allprojects {
apply plugin: 'idea'
group = 'com.bluelinelabs'
version = '1.3.6'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.7
targetCompatibility = 1.7
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()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
artifactId project.ext.artifactId
pom.withXml {
def node = asNode()
node.appendNode('name', 'LoganSquare')
node.appendNode('description', 'Screaming fast JSON parsing and serialization library for Android.')
node.appendNode('url', 'https://github.com/bluelinelabs/LoganSquare')
def organizationNode = node.appendNode('organization')
organizationNode.appendNode('name', 'BlueLine Labs')
organizationNode.appendNode('url', 'http://bluelinelabs.com')
def scmNode = node.appendNode('scm')
scmNode.appendNode('connection', 'scm:git:https://github.com/bluelinelabs/LoganSquare')
scmNode.appendNode('developerConnection', 'scm:git:https://github.com/bluelinelabs/LoganSquare')
scmNode.appendNode('url', 'https://github.com/bluelinelabs/LoganSquare')
def developersNode = node.appendNode('developers')
def ericNode = developersNode.appendNode('developer')
ericNode.appendNode('id', 'erickuck')
ericNode.appendNode('name', 'Eric Kuck')
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 {
user = project.hasProperty('bintray_username') ? bintray_username : ''
key = project.hasProperty('bintray_api_key') ? bintray_api_key : ''
publications = ['mavenJava']
dryRun = false
publish = false
pkg {
repo = 'bluelinelabs'
userOrg = 'bluelinelabs'
name = 'LoganSquare'
desc = 'Screaming fast JSON parsing and serialization library for Android.'
websiteUrl = 'https://github.com/bluelinelabs/LoganSquare'
issueTrackerUrl = 'https://github.com/bluelinelabs/LoganSquare/issues'
vcsUrl = 'https://github.com/bluelinelabs/LoganSquare'
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'
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}