forked from UrbanCode/jenkins-pipeline-ucd-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
65 lines (58 loc) · 2.56 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
/**
* (c) Copyright IBM Corporation 2017.
* This is licensed under the following license.
* The Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
import groovy.util.XmlSlurper
plugins {
id "org.jenkins-ci.jpi" version "0.16.0"
}
group = "com.urbancode.ds.jenkins.plugins"
version = getVersion()
description = "Publish artifacts into an IBM UrbanCode Deploy component as a build step."
jenkinsPlugin {
coreVersion = "1.587" // Version of Jenkins core this plugin depends on.
displayName = "IBM UrbanCode Deploy Jenkins Pipeline Plugin" // Human-readable name of plugin.
url = "https://developer.ibm.com/urbancode/plugin/jenkins-2-0/" // URL for plugin on Jenkins wiki or elsewhere.
gitHubUrl = "https://github.com/IBM-UrbanCode" // Plugin URL on GitHub. Optional.
shortName = "ibm-ucdeploy-pipeline-open" // Plugin ID, defaults to the project name without trailing '-plugin'
// The developers section is optional, and corresponds to the POM developers section.
developers {[
developer {
id "nhmathis"
name "Nicholas Mathison"
email "nhmathis(at)us(dot)ibm(dot)com"
},
developer {
id "jrbarto"
name "Jeffrey Barto"
email "jrbarto(at)us(dot)ibm(dot)com"
}
]}
}
repositories {
mavenCentral()
maven {
url "https://public.dhe.ibm.com/software/products/UrbanCode/maven2/"
}
}
dependencies {
compile 'com.ibm.urbancode.commons:uDeployRestClient:+'
// compile 'com.ibm.urbancode.commons:CommonsFileUtils:+'
// compile 'com.ibm.urbancode.commons:HttpComponents-Util:+'
// compile 'com.ibm.urbancode.commons:CommonsUtil:+'
// compile 'com.sun.jersey:jersey-core:1.12'
// compile 'com.sun.jersey:jersey-client:1.12'
compile 'javax.ws.rs:jsr311-api:1.1.1'
// compile 'org.codehaus.jettison:jettison:1.1'
// compile 'commons-lang:commons-lang:2.5'
// compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.4'
// compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.3.4'
// compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.4'
}
def getVersion() {
def pomFile = new XmlSlurper().parseText(new File("pom.xml").text)
def version = pomFile.version.text()
return version.replace('${env.buildLife}', "open")
}