-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
50 lines (42 loc) · 1.18 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
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "application"
mainClassName = "bpelviz.Main"
repositories {
mavenCentral()
}
dependencies {
compile 'net.sf.saxon:Saxon-HE:9.5.1-3'
compile 'commons-cli:commons-cli:1.2'
compile 'ch.qos.logback:logback-classic:1.0.13'
compile 'commons-io:commons-io:2.4'
testCompile 'junit:junit:4.11'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}
run {
if (project.hasProperty('args')) {
args project.args.split('\\s+')
}
}
task sass() << {
// works only on windows when having the sass gem installed on the path
try {
ant.exec(executable: "cmd", failonerror: true) {
arg(value: "/c")
arg(value: "sasss")
arg(value: "src/main/resources/BPELviz.scss")
arg(value: "src/main/resources/BPELviz.css")
}
} catch (Exception e){
println "ensure that sass is available at the command line and that you use WINDOWS"
throw e
}
}
task generateExamples(type: JavaExec, dependsOn: build) {
description = 'Generates all examples'
classpath = sourceSets.main.runtimeClasspath
main = "bpelviz.BetsyTestVisualizer"
}