forked from xebialabs-community/xlr-rundeck-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (58 loc) · 1.44 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.hierynomus.license' version '0.14.0'
id 'nebula.release' version '11.0.0'
id "com.xebialabs.xl.docker" version '1.1.0'
}
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'maven'
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://dist.xebialabs.com/public/maven2'
}
}
def apiVersion = "2018.6.5"
configurations {
extraLibs
}
dependencies {
implementation "com.xebialabs.deployit:udm-plugin-api:$apiVersion"
extraLibs group: 'org.rundeck.api', name: 'rd-api-client', version: '2.0.3'
}
xlDocker {
compileImage = 'xebialabs/xlr_dev_compile'
compileVersion = 'v8.5.0.1'
runImage = 'xebialabs/xlr_dev_run'
runVersion = 'v8.5.0.1'
runPortMapping = '15516:5516'
}
if (!project.hasProperty('release.scope')) {
project.ext['release.scope'] = 'patch'
}
if (!project.hasProperty('release.useLastTag')) {
project.ext['release.useLastTag'] = true
}
processResources.configure {
filesNotMatching('**/*.png') {
filter ReplaceTokens, tokens: [
'project.version': version.toString(),
'project.name' : rootProject.name
]
}
}
license {
header rootProject.file('License.md')
exclude '**/docker/**'
strictCheck true
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'XEBIALABS'
}
jar {
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}