-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (36 loc) · 1.04 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
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.15'
compile 'commons-cli:commons-cli:1.4'
testCompile 'junit:junit:4.12'
}
//dependencies {
// compile localGroovy()
//}
test {
useJUnit()
maxHeapSize = '1G'
}
task testGroup(type: Test) {
include '**/TestSuite.class'
reports.junitXml.destination = "$buildDir/test-results/TestSuite"
reports.html.destination = "$buildDir/test-results/TestSuite"
}
task robotRun(type: JavaExec) {
description 'Run Groovy Robot application'
// Set main property to name of Groovy script class.
main = 'com.robots.RobotRun'
// Set classpath for running the Groovy script.
classpath = sourceSets.main.runtimeClasspath
if (project.hasProperty('custom')) {
// Pass command-line argument to script.
args project.getProperty('custom')
}
if(project.hasProperty("command-file-name")) {
args "--command-file-name", project["command-file-name"]
}
}
defaultTasks 'robotRun'