-
Notifications
You must be signed in to change notification settings - Fork 1
/
bintray.gradle
102 lines (85 loc) · 2.96 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
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
def pomConfig = {
scm {
connection 'scm:git:https://github.com/concordion/concordion-api-documentation-extension.git'
developerConnection 'scm:git:[email protected]:concordion/concordion-api-documentation-extension.git'
url 'https://github.com/concordion/concordion-api-documentation-extension'
}
licenses {
license {
name 'Apache-2.0'
}
}
developers {
developer {
id 'neuhalje'
name 'Jens Neuhalfen'
email '[email protected]'
}
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
// signing {
// required { isReleaseVersion && gradle.taskGraph.hasTask("bintrayUpload") }
// sign configurations.archives
// }
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId group
artifactId 'concordion-api-documentation-extension'
version property('version')
pom.withXml {
def root = asNode()
root.appendNode('description', 'Executable Documentation with Concordion')
root.appendNode('name', 'concordion-api-documentation-extension')
root.appendNode('url', 'https://github.com/concordion/concordion-api-documentation-extension')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = property('bintray_Username')
key = property('bintray_Password')
dryRun = false //property('bintray_dryRun')//[Default: false] Whether to run this as dry-run, without deploying
publish = true //[Default: false] Whether version should be auto published after an upload
override = false //[Default: false] Whether to override version artifacts already published
pkg {
repo = 'maven'
name = 'concordion-api-documentation-extension'
userOrg = 'concordion'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/concordion/concordion-api-documentation-extension.git'
websiteUrl = 'https://github.com/concordion/concordion-api-documentation-extension'
labels = ['concordion', 'executable', 'specification', 'example-code', 'groovy' ]
githubRepo = 'concordion/concordion-api-documentation-extension'
githubReleaseNotesFile = 'README.md'
version {
name = property('version')
desc = 'Executable Documentation with Concordion'
released = new Date()
vcsTag = property('version')
gpg {
sign = false
}
mavenCentralSync {
sync = false
}
}
}
publications = ['maven']
}