-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
executable file
·60 lines (46 loc) · 1.84 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
plugins {
id "com.github.hierynomus.license" version "0.15.0"
id "com.github.hierynomus.jython" version "0.11.0"
id "com.xebialabs.xl.docker" version "1.1.0"
id "nebula.release" version "8.0.0"
id "com.github.ben-manes.versions" version "0.22.0"
}
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'maven'
xlDocker {
compileImage = 'xebialabsunsupported/xlr_dev_compile'
compileVersion = '8.2.0-1'
runImage = 'xebialabsunsupported/xlr_dev_run'
runVersion = '8.2.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
}
dependencies {
jython ":delphixpy:1.10.0.0"
}
if (!project.hasProperty('jythonInterpreter')) {
project.ext['jythonInterpreter'] = "jython"
}
// sourceSets.main.resources.srcDirs = ["src/main/jython", "src/main/resources"]
// sourceSets.test.resources.srcDirs = ["src/test/jython", "src/test/resources"]
task testJython(type: Exec, dependsOn: ['testClasses']) {
def classpath = sourceSets.main.runtimeClasspath.asPath + ":$projectDir/build/jython/main:$projectDir/src/main/resources"
environment = ["itest_conf_file": "$projectDir/src/test/jython/itests/itest-conf.json","CLASSPATH": classpath, "PATH": System.getenv("PATH"), "HOME": System.getenv("HOME")]
commandLine jythonInterpreter, "-m", "unittest", "discover", "-s", "./src/test/jython", "-p", "*_test.py", "-v"
workingDir = projectDir
}
// test.dependsOn testJython
license {
header rootProject.file('License.md')
strictCheck true
excludes(["**/*.json", "**/requests/*", "**/responses/**", "**/logback-test.xml", "**/build/jython/**", "**/delphixpy/**"])
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'XEBIALABS'
}