forked from jdewinne/xlr-sdelements-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
48 lines (38 loc) · 1.2 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
plugins {
id "com.github.hierynomus.license" version "0.14.0"
id "com.github.hierynomus.jython" version "0.6.0"
id "com.xebialabs.xl.docker" version "1.1.0"
id "nebula.release" version "6.0.0"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
xlDocker {
compileImage = 'xebialabs/xlr_dev_compile'
compileVersion = 'v8.0.0.1'
runImage = 'xebialabs/xlr_dev_run'
runVersion = 'v8.0.0.2'
runPortMapping = '15516:5516'
}
if (!project.hasProperty('release.scope')) {
project.ext['release.scope'] = 'patch'
}
if (!project.hasProperty('release.useLastTag')) {
project.ext['release.useLastTag'] = true
}
dependencies {
jython ":requests:2.13.0"
}
task testJython(type: Exec, dependsOn: ['testClasses']) {
environment = ["CLASSPATH": sourceSets.test.runtimeClasspath.asPath, "PATH": System.getenv("PATH"), "HOME": System.getenv("HOME")]
commandLine testRunner, "$projectDir/src/main/resources/sdelements/", "$projectDir/src/test/jython", buildDir
}
test.dependsOn testJython
license {
header rootProject.file('License.md')
strictCheck true
excludes(["**/requests/**"])
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'XEBIALABS'
}