-
Notifications
You must be signed in to change notification settings - Fork 2
/
distribution.gradle
106 lines (85 loc) · 3.15 KB
/
distribution.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
group = 'cash.ird.walletd'
archivesBaseName = 'walletd'
description = 'Java wrapper for the Iridium Walletd json rpc API - see https://ird.cash'
scmVersion {
tag {
prefix = 'v'
versionSeparator = ''
}
}
project.version = scmVersion.version
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier 'javadoc'
}
task testsJar(type: Jar) {
from sourceSets.test.allSource
classifier 'tests'
}
publishing {
publications {
walletd(MavenPublication) {
from components.java
groupId group
artifactId archivesBaseName
pom {
withXml {
def root = asNode()
root.appendNode('name', archivesBaseName)
root.appendNode('description', description)
root.appendNode('url', 'https://ird.cash')
def scm = root.appendNode('scm')
scm.appendNode('url', 'https://github.com/danielclasen/iridium-java-api')
scm.appendNode('connection', 'scm:git:git://github.com/danielclasen/iridium-java-api.git')
scm.appendNode('developerConnection', 'scm:git:ssh://github.com:danielclasen/iridium-java-api.git')
def issueManagement = root.appendNode('issueManagement')
issueManagement.appendNode('system', 'GitHub Issues')
issueManagement.appendNode('url', 'https://github.com/danielclasen/iridium-java-api/issues')
def licenses = root.appendNode('licenses')
def license = licenses.appendNode('license')
license.appendNode('name', 'GNU General Public License v3.0')
license.appendNode('url', 'https://www.gnu.org/licenses/gpl-3.0.txt')
def developers = root.appendNode('developers')
def developer = developers.appendNode('developer')
developer.appendNode('name', 'Daniel Clasen')
developer.appendNode('organizationUrl', 'https://github.com/danielclasen')
}
}
artifact sourcesJar
artifact javadocJar
artifact testsJar
}
}
}
ext {
bintrayUser = System.env.BINTRAY_USER ?: null
bintrayKey = System.env.BINTRAY_KEY ?: null
bintrayPublish = System.env.BINTRAY_PUBLISH ?: false
bintrayOverride = System.env.BINTRAY_OVERRIDE ?: false
bintrayDry = System.env.BINTRAY_DRY ?: false
}
bintray {
user = bintrayUser
key = bintrayKey
publications = [archivesBaseName]
publish = bintrayPublish
override = bintrayOverride
dryRun = bintrayDry
pkg {
repo = 'iridium'
name = archivesBaseName
desc = description
websiteUrl = 'https://ird.cash'
issueTrackerUrl = 'https://github.com/danielclasen/iridium-java-api/issues'
vcsUrl = 'https://github.com/danielclasen/iridium-java-api'
licenses = ['GPL-3.0']
version {
name = project.version
licenses = ['GPL-3.0']
}
}
}