-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathextra_publication.gradle
58 lines (50 loc) · 1.75 KB
/
extra_publication.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
apply plugin: 'maven-publish'
def pomConfig = {
name 'XL Deploy Gradle Plugin'
url 'https://github.com/xebialabs-community/gradle-xld-plugin'
scm { url 'https://github.com/xebialabs-community/gradle-xld-plugin.git' }
organization {
name 'XebiaLabs'
url 'http://www.xebialabs.com'
}
}
publishing {
publications {
gradlePlugin(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'com.xebialabs.gradle'
artifactId 'xl-deploy-gradle-plugin'
version this.version
pom.withXml {
asNode().appendNode('description', 'Gradle plugin to execute deployments using XL Deploy server')
asNode().children().last() + pomConfig
}
}
}
}
bintray {
user = project.hasProperty('bintrayUsername') ? project.property('bintrayUsername') : ''
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : ''
publications = ['gradlePlugin']
dryRun = false
publish = true
pkg {
repo = 'maven'
userOrg = 'xebialabs'
name = 'xl-deploy-gradle-plugin'
desc = 'Gradle plugin to execute deployments using XL Deploy server'
websiteUrl = 'https://github.com/xebialabs-community/gradle-xld-plugin'
issueTrackerUrl = 'https://github.com/xebialabs-community/gradle-xld-plugin/issues'
vcsUrl = 'https://github.com/xebialabs-community/gradle-xld-plugin.git'
licenses = ['Apache-2.0']
labels = ['deployment', 'deploy', 'xldeploy', 'cd', 'continuous delivery', 'gradle']
publicDownloadNumbers = true
version {
attributes = ['gradle-plugin': "com.xebialabs.xl-deploy:com.xebialabs.gradle:xl-deploy-gradle-plugin"]
vcsTag = "v${project.version}"
}
}
}
tasks.bintrayUpload.dependsOn tasks.publishToMavenLocal